Vector.Create Logarithmic Range Method
Definition
Namespace: Numerics.NET
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Assembly: Numerics.NET (in Numerics.NET.dll) Version: 9.0.4
Overload List
Create | Constructs a new vector with elements evenly spaced in a base 10 logarithmic scale. |
Create | Constructs a new vector with elements evenly spaced in a logarithmic scale. |
Create | 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.
public static DenseVector<T> CreateLogarithmicRange<T>(
int start,
int stop,
ArrayMutability mutability = ArrayMutability.MutableValues
)
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
Argument | stop is less than start. |
CreateLogarithmicRange<T>(T, Int32, Int32, ArrayMutability)
Constructs a new vector with elements evenly spaced in a logarithmic scale.
public static DenseVector<T> CreateLogarithmicRange<T>(
T baseValue,
int start,
int stop,
ArrayMutability mutability = ArrayMutability.MutableValues
)
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
Argument | stop is less than start. |
Argument | 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.
public static DenseVector<T> CreateLogarithmicRange<T>(
int length,
T baseValue,
T start,
T stop,
bool endPoint,
ArrayMutability mutability = ArrayMutability.MutableValues
)
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
Argument | baseValue is less than or equal to zero. |