19 size_t seqSize = size();
20 if (newSize == seqSize)
23 if (newSize < seqSize)
25 deleteElements(newSize, seqSize - newSize);
30 auto gap = std::vector<double>(alphabet().getSize(), 0);
32 for (
size_t i = 0; i < (size_t)(newSize - seqSize); i++)
43 size_t seqSize = size();
44 if (newSize == seqSize)
47 if (newSize < seqSize)
49 deleteElements(0, seqSize - newSize);
54 auto gap = std::vector<double>(alphabet().getSize(), 0);
56 for (
size_t i = 0; i < (size_t)(newSize - seqSize); i++)
void setToSizeL(size_t newSize) override
Set up the size of a sequence from the left side.
void setToSizeR(size_t newSize) override
Set up the size of a sequence from the right side.
This alphabet is used to deal NumericAlphabet.