GenerateLinearRange(Double, Double, Double) 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(
double start,
double step,
double stop
)
Parameters
- start Double
- The start value of the range.
- step Double
- The step size.
- stop Double
- The end value of the range.
Return Value
DoubleThe generated sample vector.
See Also