SparseSequence Constructor (IAlphabet, Int32, Byte) |
Creates a sparse sequence based on the specified parameters.
The item parameter must contain an alphabet as specified in the alphabet parameter,
else an exception will occur.
The index parameter value must be a non negative value.
Count property of an instance created by this constructor will be set to value of index + 1.
Namespace: BioAssembly: Bio.Core (in Bio.Core.dll) Version: 2.0.0.1 (2.0.0.1)
Syntax public SparseSequence(
IAlphabet alphabet,
int index,
byte item
)
Public Sub New (
alphabet As IAlphabet,
index As Integer,
item As Byte
)
public:
SparseSequence(
IAlphabet^ alphabet,
int index,
unsigned char item
)
new :
alphabet : IAlphabet *
index : int *
item : byte -> SparseSequence
Parameters
- alphabet
- Type: BioIAlphabet
The alphabet the sequence uses (e.g. Alphabets.DNA or Alphabets.RNA or Alphabets.Protein) - index
- Type: SystemInt32
Position of the specified sequence item. - item
- Type: SystemByte
A sequence item which is known by the alphabet.
See Also