Click or drag to resize

GenerateLinearRangeMapT Method

Generate samples by sampling a function at linearly spaced points 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.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static T[] LinearRangeMap<T>(
	double start,
	double step,
	double stop,
	Func<double, T> map
)

Parameters

start  Double
The start value of the range.
step  Double
The step size.
stop  Double
The end value of the range.
map  FuncDouble, T
The function to sample.

Type Parameters

T
The type of the generated values.

Return Value

T
The sampled values.
See Also