Vector.CreateLogarithmicRange Method

Definition

Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.3

Overload List

CreateLogarithmicRange<T>(Int32, Int32, ArrayMutability) Constructs a new vector with elements evenly spaced in a base 10 logarithmic scale.
CreateLogarithmicRange<T>(T, Int32, Int32, ArrayMutability) Constructs a new vector with elements evenly spaced in a logarithmic scale.
CreateLogarithmicRange<T>(Int32, T, T, T, Boolean, ArrayMutability) Constructs a new vector with elements evenly spaced in a logarithmic scale.

CreateLogarithmicRange<T>(Int32, Int32, ArrayMutability)

Constructs a new vector with elements evenly spaced in a base 10 logarithmic scale.
C#
public static DenseVector<T> CreateLogarithmicRange<T>(
	int start,
	int stop,
	ArrayMutability mutability = ArrayMutability.Immutable
)

Parameters

start  Int32
The exponent of the first value in the range.
stop  Int32
The exponent of the last value in the range.
mutability  ArrayMutability  (Optional)
Specifies how the vector's values may be changed. The default is mutable values.

Type Parameters

T

Return Value

DenseVector<T>
A DenseVector<T>.

Exceptions

ArgumentException

stop is less than start.

CreateLogarithmicRange<T>(T, Int32, Int32, ArrayMutability)

Constructs a new vector with elements evenly spaced in a logarithmic scale.
C#
public static DenseVector<T> CreateLogarithmicRange<T>(
	T baseValue,
	int start,
	int stop,
	ArrayMutability mutability = ArrayMutability.Immutable
)

Parameters

baseValue  T
The base of the logarithmic scale.
start  Int32
The exponent of the first value in the range.
stop  Int32
The exponent of the last value in the range.
mutability  ArrayMutability  (Optional)
Specifies how the vector's values may be changed. The default is mutable values.

Type Parameters

T

Return Value

DenseVector<T>
A DenseVector<T>.

Exceptions

ArgumentException

stop is less than start.

ArgumentOutOfRangeException

baseValue is equal to zero.

CreateLogarithmicRange<T>(Int32, T, T, T, Boolean, ArrayMutability)

Constructs a new vector with elements evenly spaced in a logarithmic scale.
C#
public static DenseVector<T> CreateLogarithmicRange<T>(
	int length,
	T baseValue,
	T start,
	T stop,
	bool endPoint,
	ArrayMutability mutability = ArrayMutability.Immutable
)

Parameters

length  Int32
The number of values.
baseValue  T
The base of the logarithmic scale.
start  T
The exponent of the first value in the range.
stop  T
The exponent of the last value in the range.
endPoint  Boolean
Indicates whether stop is included in the sequence.
mutability  ArrayMutability  (Optional)
Specifies how the vector's values may be changed. The default is mutable values.

Type Parameters

T

Return Value

DenseVector<T>
A DenseVector<T>.

Exceptions

ArgumentOutOfRangeException

baseValue is less than or equal to zero.

See Also