Ejemplo n.º 1
0
 /// <summary>
 /// Confirms that there is a symbol in the similarity matrix for every
 /// symbol in the sequence.
 /// </summary>
 /// <param name="sequence">Sequence to validate.</param>
 /// <returns>true if sequence is valid.</returns>
 public bool ValidateSequence(ISequence sequence)
 {
     return(sequence.All(item => supportedAlphabets.Contains(item)));
 }
Ejemplo n.º 2
0
 /// <summary>
 /// Confirms that there is a symbol in the similarity matrix for every
 /// symbol in the sequence.
 /// </summary>
 /// <param name="sequence">Sequence to validate.</param>
 /// <returns>true if sequence is valid.</returns>
 public bool ValidateSequence(ISequence sequence)
 {
     return sequence.All(item => supportedAlphabets.Contains(item));
 }