MaximumLengthSequenceGetInfiniteSequence64T Method |
Gets the sequence. The enumeration never stops, thus you are resonsible for stopping it. The values are repeated after n values, where n is the
Length.
Namespace: Altaxo.Calc.ProbabilityAssembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax public static IEnumerable<T> GetInfiniteSequence64<T>(
ulong sequenceLength,
ulong tap,
ulong startValue,
T logicalZero,
T logicalOne
)
Parameters
- sequenceLength UInt64
- Length of the sequence. Must be a number that is 2^k-1, where k is an integer value (k=2..64).
- tap UInt64
- Tap value to generate the sequence. If you don't know what a tap value is, you should probably use the instance function GetSequenceT(T, T).
- startValue UInt64
- The initial value of the sequence. Normally, this value is initialized with the value of the sequence length. Here you can provide any other value that is non-zero when and-ing it with the sequence length.
- logicalZero T
- The value that is returned if the value of the binary sequence is logical zero.
- logicalOne T
- The value that is returned if the value of the binary sequence is logical one.
Type Parameters
- T
- Designates the type of the members of the sequence.
Return Value
IEnumerableTValues of the maximum length sequence, where a logical value of zero is mapped to the parameter
logicalZero and a logical one is mapped to
logicalOne.
See Also