Click or drag to resize

GenerateUnfoldT, TState(Int32, FuncTState, ValueTupleT, TState, TState) Method

Generate samples generated by the given computation.

Namespace: Altaxo.Calc
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3572.0 (4.8.3572.0)
Syntax
C#
public static T[] Unfold<T, TState>(
	int length,
	Func<TState, (T , TState )> f,
	TState state
)

Parameters

length  Int32
The number of samples to generate.
f  FuncTState, ValueTupleT, TState
The computation to perform.
state  TState
The initial state.

Type Parameters

T
The type of the generated values.
TState
The type of the unfolding state.

Return Value

T
The generated values.
See Also