Sets sample and recalculates beta and mixture.
new sample with length less or equal maxLength
FeaturesException if isFeaturesCorrect is false.
See Implementation
Sets sample and recalculates beta and mixture.