Click or drag to resize

GenerateRandomMapT Method

Generate samples by sampling a function at samples from a probability distribution.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static T[] RandomMap<T>(
	int length,
	IContinuousDistribution distribution,
	Func<double, T> map
)

Parameters

length  Int32
The number of samples to generate.
distribution  IContinuousDistribution
The probability distribution to sample from.
map  FuncDouble, T
The function to sample.

Type Parameters

T
The type of the generated values.

Return Value

T
The generated samples.
See Also