Vector.CreateLogarithmicRange Method

Definition

Namespace: Extreme.Mathematics
Assembly: Extreme.Numerics (in Extreme.Numerics.dll) Version: 8.1.23

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

ArgumentExceptionstop 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

ArgumentExceptionstop is less than start.
ArgumentOutOfRangeExceptionbaseValue 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

ArgumentOutOfRangeExceptionbaseValue is less than or equal to zero.

See Also