GenerateLinearRange(Int32, Int32, Int32) Method |
Generate a linearly spaced sample vector within the inclusive interval (start, stop) and the provided step.
The start value is always included as first value, but stop is only included if it stop-start is a multiple of step.
Equivalent to MATLAB double colon operator (::).
Namespace: Altaxo.CalcAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntaxpublic static double[] LinearRange(
int start,
int step,
int stop
)
Parameters
- start Int32
- The start value of the range.
- step Int32
- The step size.
- stop Int32
- The end value of the range.
Return Value
DoubleThe generated sample vector.
See Also