47 #include "../AbstractParameterAliasable.h" 143 Simplex(
size_t dim,
unsigned short method = 0,
bool allowNull =
false,
const std::string& name =
"Simplex.");
158 Simplex(
const std::vector<double>& probas,
unsigned short method = 0,
bool allowNull =
false,
const std::string& name =
"Simplex.");
181 #endif // _SIMPLEDISCRETEDISTRIBUTION_H_ std::vector< double > & getFrequencies()
void setFrequencies(const std::vector< double > &)
const std::vector< double > & getFrequencies() const
void fireParameterChanged(const ParameterList ¶meters)
Notify the class when one or several parameters have changed.
unsigned short getMethod() const
This class allows to perform a correspondence analysis.
std::vector< double > vProb_
size_t dim_
The dimension+1 of the space simplex (ie the number of probabilities).
double prob(size_t i) const
A Simplex object, used to define sets of probabilities that sum 1.
The parameter list object.
A partial implementation of the Parametrizable interface.
std::vector< double > valpha_
just used with local ratio (method 2)
Simplex(size_t dim, unsigned short method=0, bool allowNull=false, const std::string &name="Simplex.")
Builds a new Simplex object from a number of probabilities. They are initialized equal.
unsigned short method_
the method of parametrization.
Simplex * clone() const
Create a copy of this object and send a pointer to it.