40 #ifndef _WEIGHTEDSUBSTITUTIONCOUNT_H_ 41 #define _WEIGHTEDSUBSTITUTIONCOUNT_H_ 46 #include <Bpp/Seq/Alphabet/Alphabet.h> 47 #include <Bpp/Seq/AlphabetIndex/AlphabetIndex2.h> 59 virtual void setWeights(
const AlphabetIndex2* index,
bool ownWeights) = 0;
61 virtual const AlphabetIndex2*
getWeights()
const = 0;
104 void setWeights(
const AlphabetIndex2* weights,
bool ownWeights);
115 #endif //_WEIGHTEDSUBSTITUTIONCOUNT_H_ virtual void setWeights(const AlphabetIndex2 *index, bool ownWeights)=0
virtual bool hasWeights() const =0
void setWeights(const AlphabetIndex2 *weights, bool ownWeights)
const AlphabetIndex2 * getWeights() const
const AlphabetIndex2 * weights_
virtual const AlphabetIndex2 * getWeights() const =0
Interface allowing for weighting of substitution counts according to state properties.
The SubstitutionsCount interface.
AbstractWeightedSubstitutionCount(const AbstractWeightedSubstitutionCount &index)
AbstractWeightedSubstitutionCount & operator=(const AbstractWeightedSubstitutionCount &index)
virtual ~AbstractWeightedSubstitutionCount()
virtual void weightsHaveChanged()=0
AbstractWeightedSubstitutionCount(const AlphabetIndex2 *weights, bool ownWeights)
Partial implementation of the WeightedSubstitutionCount interface.