DSequenceUnfold(Int32, Double, FuncInt32, Double, Double) Method

Creates a sequence by unfolding an initial state by a function.

Definition

Namespace: Austra.Library
Assembly: Austra.Library (in Austra.Library.dll) Version: 2.5.0+d1268756e036101f601080f153b3997e72fc912d
C#
public static DSequence Unfold(
	int size,
	double seed,
	Func<int, double, double> unfold
)

Parameters

size  Int32
The size of the sequence.
seed  Double
First value in the sequence.
unfold  FuncInt32, Double, Double
The generating function.

Return Value

DSequence
The sequence unfolded from the initial state and the function.

See Also