Sequence(Double[] p, Integer L, SequenceType dataType)

Create one sequence given the length and the probability distribution over each state.

Parameters

  • Double[] p - the probability distribution over integer states 1 to K.
  • Integer L - length of the alignment
  • SequenceType dataType - (optional) the sequence type of the alignment

Return type

SimpleAlignment

Examples

  • rootSeq.lphy