Click or drag to resize

MaximumLengthSequence Class

Represents a maximum length sequence (MLS). Those sequences have a repeat length of 2^k-1, with k being an integer value (k=2..64). This class allows the generation of sequences with a length of 2^2-1 up to 2^64-1.
Inheritance Hierarchy
SystemObject
  Altaxo.Calc.ProbabilityMaximumLengthSequence

Namespace: Altaxo.Calc.Probability
Assembly: AltaxoCore (in AltaxoCore.dll) Version: 4.8.3179.0 (4.8.3179.0)
Syntax
C#
public class MaximumLengthSequence

The MaximumLengthSequence type exposes the following members.

Properties
 NameDescription
Public propertyLengthGets the length of the sequence as an Int32 value. If the sequence length is greater than int.MaxValue, an InvalidCastException will be thrown.
Public propertyLongLengthGets the length of the sequence. This is the repeat period of the sequence.
Public propertyNumberOfStagesGets the number of stages. This is the number of flip-flops that is needed to generate a maximum length sequence with discrete hardware. The sequence length is 2^numberOfStages-1.
Public propertyTapValueGets or sets the tap value. When setting the tap value, only basic tests will be made to ensure its validity. Thus, it can not be fully ensured that the provided tap value will generate a maximum length sequence.
Top
Methods
 NameDescription
Public methodEqualsDetermines whether the specified object is equal to the current object.
(Inherited from Object)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.
(Inherited from Object)
Public methodStatic memberFromMinimumSequenceLength(Int32)Constructs a new instance of the MaximumLengthSequence class with a minimum length given by the argument.
Public methodStatic memberFromMinimumSequenceLength(UInt64)Constructs a new instance of the MaximumLengthSequence class with a minimum length given by the argument.
Public methodStatic memberFromNumberOfStagesConstructs a new instance of the MaximumLengthSequence class froms the number of stages (bits, flip-flops).
Public methodStatic memberFromTapValueConstructs a new instance of the MaximumLengthSequence class from a tap value given by the argument.
Public methodGetHashCodeServes as the default hash function.
(Inherited from Object)
Public methodGetInfiniteSequenceT(T, T)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.
Public methodGetInfiniteSequenceT(T, T, UInt64)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.
Public methodStatic memberGetInfiniteSequence32TGets 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.
Public methodStatic memberGetInfiniteSequence64TGets 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.
Public methodGetSequenceT(T, T)Gets the sequence. The enumeration stops after yielding n values, with n being the sequence length.
Public methodGetSequenceT(T, T, UInt64)Gets the sequence. The enumeration stops after yielding n values, with n being the sequence length.
Public methodStatic memberGetSequence32TGets the sequence. The enumeration stops after yielding n values, with n being the sequence length.
Public methodStatic memberGetSequence64TGets the sequence. The enumeration stops after yielding n values, with n being the sequence length.
Public methodStatic memberGetSequenceLengthFromMinimumSequenceLength(Int32)Gets the next possible sequence length that is equal to or greater than the provided sequenceLength.
Public methodStatic memberGetSequenceLengthFromMinimumSequenceLength(UInt64)Gets the next possible sequence length that is equal to or greater than the provided sequenceLength.
Public methodGetTypeGets the Type of the current instance.
(Inherited from Object)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object.
(Inherited from Object)
Public methodToStringReturns a string that represents the current object.
(Inherited from Object)
Top
Fields
 NameDescription
Public fieldStatic memberTapValues Tap values for sequence lengths of 2^2-1 ... 2^64-1. The value at index k represents the tap value to generate a sequence of length 2^k-1. The values at index 0 and 1 are unused and set to zero.
Top
See Also