bpp-core
2.2.0
|
A Discrete distribution object, where some specific probabilities are assigned to a finite set of values. More...
#include <Bpp/Numeric/Prob/SimpleDiscreteDistribution.h>
Public Member Functions | |
SimpleDiscreteDistribution (const std::map< double, double > &distribution, double precision=NumConstants::TINY(), bool fixed=false) | |
Builds a new SimpleDiscreteDistribution object from a map<double,double> object. With this constructor, the probabilities are fixed (ie no parameters). More... | |
SimpleDiscreteDistribution (const std::vector< double > &values, const std::vector< double > &probas, double prec=NumConstants::TINY(), bool fixed=false) | |
Builds a new SimpleDiscreteDistribution object from a vector of values and a vector of probabilities. More... | |
SimpleDiscreteDistribution (const std::vector< double > &values, const std::map< size_t, std::vector< double > > &ranges, const std::vector< double > &probas, double prec=NumConstants::TINY(), bool fixed=false) | |
Builds a new SimpleDiscreteDistribution object from a vector of values, a map of ranges and a vector of probabilities. More... | |
virtual | ~SimpleDiscreteDistribution () |
SimpleDiscreteDistribution (const SimpleDiscreteDistribution &) | |
SimpleDiscreteDistribution & | operator= (const SimpleDiscreteDistribution &) |
SimpleDiscreteDistribution * | clone () const |
Create a copy of this object and send a pointer to it. More... | |
const std::map< size_t, std::vector< double > > | getRanges () const |
std::string | getName () const |
Get the name of the distribution. More... | |
void | discretize () |
Discretizes the distribution in equiprobable classes. More... | |
void | fireParameterChanged (const ParameterList ¶meters) |
Notify the class when one or several parameters have changed. More... | |
double | getLowerBound () const |
methods about the range of the definition More... | |
double | getUpperBound () const |
double | qProb (double x) const |
Return the quantile of the continuous version of the distribution, ie y such that ![]() | |
double | pProb (double x) const |
Return the cumulative quantile of the continuous version of the distribution, ie ![]() | |
double | Expectation (double a) const |
Return a primitive function used for the expectation of the continuous version of the distribution, ie ![]() | |
void | restrictToConstraint (const Constraint &c) |
Restricts the distribution to the domain where the constraint is respected, in addition of other predefined constraints. More... | |
virtual size_t | getNumberOfIndependentParameters () const =0 |
Get the number of independent parameters. More... | |
size_t | getNumberOfIndependentParameters () const |
Get the number of independent parameters. More... | |
virtual void | aliasParameters (const std::string &p1, const std::string &p2)=0 throw (ParameterNotFoundException, Exception) |
Set two parameters as 'aliased'. More... | |
virtual void | aliasParameters (std::map< std::string, std::string > &unparsedParams, bool verbose)=0 |
alias the parameters following the links described in a map, and update the object accordingly. Cycles in aliasing are detected and forbidden. More... | |
void | aliasParameters (const std::string &p1, const std::string &p2) throw (ParameterNotFoundException, Exception) |
Set two parameters as 'aliased'. More... | |
void | aliasParameters (std::map< std::string, std::string > &unparsedParams, bool verbose) |
alias the parameters following the links described in a map, and update the object accordingly. Cycles in aliasing are detected and forbidden. More... | |
virtual void | unaliasParameters (const std::string &p1, const std::string &p2)=0 throw (ParameterNotFoundException, Exception) |
Detach two parameters previously set as 'aliased'. More... | |
void | unaliasParameters (const std::string &p1, const std::string &p2) throw (ParameterNotFoundException, Exception) |
Detach two parameters previously set as 'aliased'. More... | |
virtual const ParameterList & | getIndependentParameters () const =0 |
Get the minimal list of parameters to set the model. More... | |
const ParameterList & | getIndependentParameters () const |
Get the minimal list of parameters to set the model. More... | |
virtual std::vector< std::string > | getAlias (const std::string &name) const =0 |
std::vector< std::string > | getAlias (const std::string &name) const |
virtual bool | hasParameter (const std::string &name) const =0 |
Tell if there is a parameter with specified name. More... | |
bool | hasParameter (const std::string &name) const |
Tell if there is a parameter with specified name. More... | |
virtual const ParameterList & | getParameters () const =0 |
Get all parameters available. More... | |
const ParameterList & | getParameters () const |
Get all parameters available. More... | |
virtual const Parameter & | getParameter (const std::string &name) const =0 throw (ParameterNotFoundException) |
Get the parameter with specified name. More... | |
const Parameter & | getParameter (const std::string &name) const throw (ParameterNotFoundException) |
Get the parameter with specified name. More... | |
virtual double | getParameterValue (const std::string &name) const =0 throw (ParameterNotFoundException) |
Get the value for parameter of name 'name'. More... | |
double | getParameterValue (const std::string &name) const throw (ParameterNotFoundException) |
Get the value for parameter of name 'name'. More... | |
virtual void | setAllParametersValues (const ParameterList ¶meters)=0 throw (ParameterNotFoundException, ConstraintException) |
Set the parameters values to be equals to those of parameters. More... | |
void | setAllParametersValues (const ParameterList ¶meters) throw (ParameterNotFoundException, ConstraintException) |
Set the parameters values to be equals to those of parameters. More... | |
virtual void | setParameterValue (const std::string &name, double value)=0 throw (ParameterNotFoundException, ConstraintException) |
Set the value of parameter with name name to be equal to value. More... | |
void | setParameterValue (const std::string &name, double value) throw (ParameterNotFoundException, ConstraintException) |
Set the value of parameter with name name to be equal to value. More... | |
virtual void | setParametersValues (const ParameterList ¶meters)=0 throw (ParameterNotFoundException, ConstraintException) |
Update the parameters from parameters. More... | |
void | setParametersValues (const ParameterList ¶meters) throw (ParameterNotFoundException, ConstraintException) |
Update the parameters from parameters. More... | |
virtual bool | matchParametersValues (const ParameterList ¶meters)=0 throw (ConstraintException) |
Update the parameters from parameters. More... | |
bool | matchParametersValues (const ParameterList ¶meters) throw (ConstraintException) |
Update the parameters from parameters. More... | |
virtual size_t | getNumberOfParameters () const =0 |
Get the number of parameters. More... | |
size_t | getNumberOfParameters () const |
Get the number of parameters. More... | |
virtual void | setNamespace (const std::string &prefix)=0 |
Set the namespace for the parameter names. More... | |
void | setNamespace (const std::string &prefix) |
Set the namespace for the parameter names. More... | |
virtual std::string | getNamespace () const =0 |
std::string | getNamespace () const |
virtual std::string | getParameterNameWithoutNamespace (const std::string &name) const =0 |
Resolves a parameter name according to the current namespace. More... | |
std::string | getParameterNameWithoutNamespace (const std::string &name) const |
Resolves a parameter name according to the current namespace. More... | |
ParameterList | getAliasedParameters (const ParameterList &pl) const |
Return the list of the names of the parameters that are aliased (directly or not) to one of the parameters of the list. More... | |
std::string | getFrom (const std::string &name) const |
The DiscreteDistribution interface. | |
size_t | getNumberOfCategories () const |
void | setNumberOfCategories (size_t nbClasses) |
sets the number of categories and discretizes if there is a change in this number. More... | |
double | getCategory (size_t categoryIndex) const |
double | getProbability (size_t categoryIndex) const |
double | getProbability (double category) const |
Vdouble | getCategories () const |
Vdouble | getProbabilities () const |
double | getValueCategory (double value) const |
void | set (double category, double probability) |
Set the probability associated to a class. More... | |
void | add (double category, double probability) |
Modify the probability associated to a class. More... | |
double | getInfCumulativeProbability (double category) const |
double | getIInfCumulativeProbability (double category) const |
double | getSupCumulativeProbability (double category) const |
double | getSSupCumulativeProbability (double category) const |
double | rand () const |
Draw a random number from this distribution. More... | |
double | randC () const throw (Exception) |
Draw a random number from the continuous version of this distribution, if it exists. More... | |
double | getBound (size_t i) const throw (IndexOutOfBoundsException) |
bool | strictLowerBound () const |
bool | strictUpperBound () const |
Vdouble | getBounds () const |
void | print (OutputStream &out) const |
Print the distribution (categories and corresponding probabilities) to a stream. More... | |
double | precision () const |
void | setMedian (bool median) |
Sets the median value to true to say that the value in a class is proportional to the median value of the class, the proportionality factor being such that the sum of the values equals the expectation of the distribution. If it is set to false, the value is the mean value in the class. More... | |
Protected Member Functions | |
void | addParameter_ (Parameter *parameter) |
void | addParameters_ (const ParameterList ¶meters) |
void | deleteParameter_ (size_t index) throw (IndexOutOfBoundsException) |
void | deleteParameter_ (std::string &name) throw (IndexOutOfBoundsException) |
void | deleteParameters_ (const std::vector< std::string > &names) |
void | resetParameters_ () |
Parameter & | getParameter_ (const std::string &name) throw (ParameterNotFoundException) |
Parameter & | getParameter_ (size_t index) throw (IndexOutOfBoundsException) |
const Parameter & | getParameter_ (size_t index) const throw (IndexOutOfBoundsException) |
Parameter & | getParameterWithNamespace_ (const std::string &name) throw (ParameterNotFoundException) |
const Parameter & | getParameterWithNamespace_ (const std::string &name) const throw (ParameterNotFoundException) |
ParameterList & | getParameters_ () |
Protected Attributes | |
size_t | numberOfCategories_ |
std::map< double, double, Order > | distribution_ |
std::vector< double > | bounds_ |
IntervalConstraint | intMinMax_ |
the interval where the distribution is defined/restricted. More... | |
bool | median_ |
Private Attributes | |
std::map< size_t, std::vector< double > > | givenRanges_ |
A Discrete distribution object, where some specific probabilities are assigned to a finite set of values.
Optional parameters:
For the probabilities: they are called "theta1"
,... and defined as such that probability of value
is
For the values: they are called "V1"
, "V2"
...
Definition at line 63 of file SimpleDiscreteDistribution.h.
SimpleDiscreteDistribution::SimpleDiscreteDistribution | ( | const std::map< double, double > & | distribution, |
double | precision = NumConstants::TINY() , |
||
bool | fixed = false |
||
) |
Builds a new SimpleDiscreteDistribution object from a map<double,double> object. With this constructor, the probabilities are fixed (ie no parameters).
Keys are taken to be interval values, and map values to be the corresponding probabilities.
distribution | The map object to use. |
precision | to discriminate the categories |
fixed | tells if there are parameters (default false means there are parameters). |
Definition at line 49 of file SimpleDiscreteDistribution.cpp.
References bpp::AbstractParameterAliasable::addParameter_(), discretize(), bpp::AbstractDiscreteDistribution::distribution_, bpp::AbstractDiscreteDistribution::numberOfCategories_, bpp::AbstractDiscreteDistribution::precision(), bpp::Parameter::PROP_CONSTRAINT_IN, and bpp::TextTools::toString().
Referenced by clone().
SimpleDiscreteDistribution::SimpleDiscreteDistribution | ( | const std::vector< double > & | values, |
const std::vector< double > & | probas, | ||
double | prec = NumConstants::TINY() , |
||
bool | fixed = false |
||
) |
Builds a new SimpleDiscreteDistribution object from a vector of values and a vector of probabilities.
values | The vector of values. |
probas | The vector of probabilities. |
prec | precision used to discriminate the categories |
fixed | tells if there are parameters (default false means there are parameters). |
Definition at line 85 of file SimpleDiscreteDistribution.cpp.
References bpp::AbstractParameterAliasable::addParameter_(), discretize(), bpp::AbstractDiscreteDistribution::distribution_, bpp::AbstractDiscreteDistribution::precision(), bpp::Parameter::PROP_CONSTRAINT_IN, bpp::VectorTools::sum(), and bpp::TextTools::toString().
SimpleDiscreteDistribution::SimpleDiscreteDistribution | ( | const std::vector< double > & | values, |
const std::map< size_t, std::vector< double > > & | ranges, | ||
const std::vector< double > & | probas, | ||
double | prec = NumConstants::TINY() , |
||
bool | fixed = false |
||
) |
Builds a new SimpleDiscreteDistribution object from a vector of values, a map of ranges and a vector of probabilities.
values | The vector of values. |
ranges | The map of ranges. Each key is the index of the parameter in the given vector of values, and the associated value is a vector of two doubles, for the min and the max of the range. |
probas | The vector of probabilities. |
prec | precision to discriminate the categories |
fixed | tells if there are parameters (default false means there are parameters). |
Definition at line 127 of file SimpleDiscreteDistribution.cpp.
References bpp::AbstractParameterAliasable::addParameter_(), discretize(), bpp::AbstractDiscreteDistribution::distribution_, givenRanges_, bpp::AbstractDiscreteDistribution::precision(), bpp::Parameter::PROP_CONSTRAINT_IN, bpp::VectorTools::sum(), and bpp::TextTools::toString().
|
inlinevirtual |
Definition at line 115 of file SimpleDiscreteDistribution.h.
SimpleDiscreteDistribution::SimpleDiscreteDistribution | ( | const SimpleDiscreteDistribution & | sdd | ) |
Definition at line 195 of file SimpleDiscreteDistribution.cpp.
|
virtualinherited |
Modify the probability associated to a class.
If the category does not exist, a new category is created with the corresponding probability. if the category exists, add 'probability' to the existing probability. The sum of all probabilities is not checked.
category | The class value. |
probability | The class probability. |
Implements bpp::DiscreteDistribution.
Definition at line 181 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
inlineprotectedinherited |
Definition at line 212 of file AbstractParameterAliasable.h.
References bpp::ParameterList::addParameter(), bpp::AbstractParametrizable::addParameter_(), bpp::Parameter::clone(), and bpp::AbstractParameterAliasable::independentParameters_.
Referenced by bpp::ParametrizableCollection< N >::addObject(), bpp::BetaDiscreteDistribution::BetaDiscreteDistribution(), bpp::ConstantDistribution::ConstantDistribution(), bpp::DirichletDiscreteDistribution::DirichletDiscreteDistribution(), bpp::ExponentialDiscreteDistribution::ExponentialDiscreteDistribution(), bpp::GammaDiscreteDistribution::GammaDiscreteDistribution(), bpp::GaussianDiscreteDistribution::GaussianDiscreteDistribution(), bpp::InvariantMixedDiscreteDistribution::InvariantMixedDiscreteDistribution(), bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), SimpleDiscreteDistribution(), bpp::Simplex::Simplex(), and bpp::TruncatedExponentialDiscreteDistribution::TruncatedExponentialDiscreteDistribution().
|
inlineprotectedinherited |
Definition at line 218 of file AbstractParameterAliasable.h.
References bpp::ParameterList::addParameters(), bpp::AbstractParametrizable::addParameters_(), and bpp::AbstractParameterAliasable::independentParameters_.
Referenced by bpp::InvariantMixedDiscreteDistribution::InvariantMixedDiscreteDistribution(), and bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions().
|
pure virtualinherited |
Set two parameters as 'aliased'.
The values of the two parameters will be synchronized, so that setting the value of one parameter will automatically set the value of the other one accordingly.
p1 | Original parameter. |
p2 | Aliased parameter. |
ParameterNotFoundException | if p1 or p2 do not correspond to existing parameters. |
Exception | when trying to perform non-valid association. |
Implemented in bpp::AbstractParameterAliasable.
|
pure virtualinherited |
alias the parameters following the links described in a map, and update the object accordingly. Cycles in aliasing are detected and forbidden.
unparsedParams | the map of the links : <A,B> matches for A->B aliasing. |
verbose | verbosity |
Implemented in bpp::AbstractParameterAliasable.
|
virtualinherited |
Set two parameters as 'aliased'.
The values of the two parameters will be synchronized, so that setting the value of one parameter will automatically set the value of the other one accordingly.
p1 | Original parameter. |
p2 | Aliased parameter. |
ParameterNotFoundException | if p1 or p2 do not correspond to existing parameters. |
Exception | when trying to perform non-valid association. |
Implements bpp::ParameterAliasable.
Definition at line 103 of file AbstractParameterAliasable.cpp.
References bpp::Parameter::addParameterListener(), bpp::Parameter::getConstraint(), bpp::Constraint::getDescription(), and bpp::Parameter::hasConstraint().
Referenced by bpp::ParametrizableCollection< N >::addObject().
|
virtualinherited |
alias the parameters following the links described in a map, and update the object accordingly. Cycles in aliasing are detected and forbidden.
unparsedParams | the map of the links : <A,B> matches for A->B aliasing. |
verbose | verbosity |
Implements bpp::ParameterAliasable.
Definition at line 151 of file AbstractParameterAliasable.cpp.
References bpp::ParameterList::addParameter(), bpp::AbstractParameterAliasable::aliasParameters(), bpp::ParameterList::clone(), bpp::Parameter::clone(), bpp::ApplicationTools::displayResult(), bpp::ParameterList::getParameter(), bpp::AbstractParametrizable::getParameters(), bpp::Parameter::getValue(), bpp::ParameterList::hasParameter(), bpp::AbstractParametrizable::matchParametersValues(), bpp::ParameterList::size(), and bpp::TextTools::toString().
Referenced by bpp::AbstractParameterAliasable::aliasParameters().
|
inlinevirtual |
Create a copy of this object and send a pointer to it.
Implements bpp::DiscreteDistribution.
Definition at line 121 of file SimpleDiscreteDistribution.h.
References SimpleDiscreteDistribution().
|
inlineprotectedinherited |
Definition at line 224 of file AbstractParameterAliasable.h.
References bpp::ParameterList::deleteParameter(), bpp::AbstractParametrizable::deleteParameter_(), bpp::Parameter::getName(), bpp::AbstractParametrizable::getParameter_(), bpp::ParameterList::hasParameter(), and bpp::AbstractParameterAliasable::independentParameters_.
Referenced by bpp::AbstractParameterAliasable::deleteParameters_(), and bpp::ParametrizableCollection< N >::removeObject().
|
inlineprotectedinherited |
Definition at line 232 of file AbstractParameterAliasable.h.
References bpp::ParameterList::deleteParameter(), bpp::AbstractParametrizable::deleteParameter_(), bpp::ParameterList::hasParameter(), and bpp::AbstractParameterAliasable::independentParameters_.
|
inlineprotectedinherited |
Definition at line 239 of file AbstractParameterAliasable.h.
References bpp::AbstractParameterAliasable::deleteParameter_().
|
virtual |
Discretizes the distribution in equiprobable classes.
Reimplemented from bpp::AbstractDiscreteDistribution.
Definition at line 304 of file SimpleDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::bounds_, bpp::AbstractDiscreteDistribution::distribution_, and bpp::AbstractDiscreteDistribution::numberOfCategories_.
Referenced by fireParameterChanged(), and SimpleDiscreteDistribution().
|
virtual |
Return a primitive function used for the expectation of the continuous version of the distribution, ie .
Implements bpp::DiscreteDistribution.
Definition at line 289 of file SimpleDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
virtual |
Notify the class when one or several parameters have changed.
parameters | A ParameterList object with parameters that changed. |
Reimplemented from bpp::AbstractParameterAliasable.
Definition at line 210 of file SimpleDiscreteDistribution.cpp.
References discretize(), bpp::AbstractDiscreteDistribution::distribution_, bpp::AbstractParameterAliasable::fireParameterChanged(), bpp::AbstractParametrizable::getNumberOfParameters(), bpp::AbstractParametrizable::getParameterValue(), bpp::IntervalConstraint::getUpperBound(), bpp::AbstractDiscreteDistribution::intMinMax_, bpp::AbstractDiscreteDistribution::precision(), and bpp::TextTools::toString().
|
pure virtualinherited |
name | The name of the parameter to look for. |
Implemented in bpp::AbstractParameterAliasable.
Referenced by bpp::ParametrizableCollection< N >::addObject(), and bpp::BppOParametrizableFormat::write().
|
virtualinherited |
name | The name of the parameter to look for. |
Implements bpp::ParameterAliasable.
Definition at line 245 of file AbstractParameterAliasable.cpp.
References bpp::AbstractParameterAliasable::aliasListenersRegister_, and bpp::VectorTools::append().
Referenced by bpp::ParametrizableCollection< N >::removeObject().
|
inherited |
Return the list of the names of the parameters that are aliased (directly or not) to one of the parameters of the list.
Definition at line 266 of file AbstractParameterAliasable.cpp.
References bpp::ParameterList::addParameter(), bpp::AbstractParameterAliasable::aliasListenersRegister_, bpp::AbstractParametrizable::getParameter(), and bpp::ParameterList::hasParameter().
|
inlinevirtualinherited |
Implements bpp::DiscreteDistribution.
Definition at line 178 of file AbstractDiscreteDistribution.h.
References bpp::AbstractDiscreteDistribution::bounds_, and bpp::AbstractDiscreteDistribution::numberOfCategories_.
Referenced by bpp::AbstractDiscreteDistribution::getBounds().
|
virtualinherited |
Implements bpp::DiscreteDistribution.
Definition at line 444 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::getBound(), bpp::AbstractDiscreteDistribution::getLowerBound(), bpp::AbstractDiscreteDistribution::getUpperBound(), and bpp::AbstractDiscreteDistribution::numberOfCategories_.
|
virtualinherited |
Implements bpp::DiscreteDistribution.
Definition at line 142 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
virtualinherited |
categoryIndex | Class index. |
Implements bpp::DiscreteDistribution.
Definition at line 111 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
Referenced by bpp::BppODiscreteDistributionFormat::write().
|
inherited |
name | The name of the parameter to look for. |
Definition at line 306 of file AbstractParameterAliasable.cpp.
References bpp::AbstractParameterAliasable::aliasListenersRegister_.
|
virtualinherited |
category | The class value. |
Implements bpp::DiscreteDistribution.
Definition at line 230 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
pure virtualinherited |
Get the minimal list of parameters to set the model.
If no parameters are aliased, this is the same a getParameters().
Implemented in bpp::AbstractParameterAliasable.
Referenced by bpp::InvariantMixedDiscreteDistribution::InvariantMixedDiscreteDistribution(), bpp::BppODiscreteDistributionFormat::write(), and bpp::BppOParametrizableFormat::write().
|
inlinevirtualinherited |
Get the minimal list of parameters to set the model.
If no parameters are aliased, this is the same a getParameters().
Implements bpp::ParameterAliasable.
Definition at line 162 of file AbstractParameterAliasable.h.
References bpp::AbstractParameterAliasable::independentParameters_.
|
virtualinherited |
category | The class value. |
Implements bpp::DiscreteDistribution.
Definition at line 215 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
inlinevirtual |
methods about the range of the definition
Reimplemented from bpp::AbstractDiscreteDistribution.
Definition at line 138 of file SimpleDiscreteDistribution.h.
References bpp::AbstractDiscreteDistribution::distribution_.
|
inlinevirtual |
Get the name of the distribution.
Implements bpp::DiscreteDistribution.
Definition at line 132 of file SimpleDiscreteDistribution.h.
|
inlinevirtualinherited |
Implements bpp::Parametrizable.
Definition at line 125 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::prefix_.
Referenced by bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), bpp::Simplex::setFrequencies(), bpp::AbstractParameterAliasable::setNamespace(), and bpp::BppODiscreteDistributionFormat::write().
|
pure virtualinherited |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::FunctionWrapper::getNamespace().
|
virtualinherited |
Implements bpp::DiscreteDistribution.
Definition at line 91 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::numberOfCategories_.
Referenced by bpp::BppODiscreteDistributionFormat::write().
|
pure virtualinherited |
Get the number of independent parameters.
Implemented in bpp::AbstractParameterAliasable.
|
inlinevirtualinherited |
Get the number of independent parameters.
Implements bpp::ParameterAliasable.
Definition at line 164 of file AbstractParameterAliasable.h.
References bpp::AbstractParameterAliasable::independentParameters_, and bpp::ParameterList::size().
|
inlinevirtualinherited |
Get the number of parameters.
Implements bpp::Parametrizable.
Definition at line 121 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::size().
Referenced by bpp::AbstractParameterAliasable::AbstractParameterAliasable(), fireParameterChanged(), bpp::AbstractParameterAliasable::operator=(), bpp::ConstantDistribution::restrictToConstraint(), and restrictToConstraint().
|
pure virtualinherited |
Get the number of parameters.
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, bpp::AbstractParametrizable, and bpp::DirectionFunction.
Referenced by bpp::FunctionWrapper::getNumberOfParameters(), and bpp::BppODiscreteDistributionFormat::write().
|
inlinevirtualinherited |
Get the parameter with specified name.
name | The name of the parameter to look for. |
ParameterNotFoundException | if no parameter with this name is found. |
Implements bpp::Parametrizable.
Definition at line 79 of file AbstractParametrizable.h.
References bpp::ParameterList::getParameter(), bpp::AbstractParametrizable::parameters_, and bpp::AbstractParametrizable::prefix_.
Referenced by bpp::AbstractParameterAliasable::getAliasedParameters(), bpp::ReparametrizationDerivableFirstOrderWrapper::getFirstOrderDerivative(), bpp::AbstractParametrizable::getParameterValue(), bpp::AbstractParametrizable::getParameterWithNamespace_(), bpp::ReparametrizationDerivableSecondOrderWrapper::getSecondOrderDerivative(), and bpp::TestFunction::getValue().
|
pure virtualinherited |
Get the parameter with specified name.
name | The name of the parameter to look for. |
ParameterNotFoundException | if no parameter with this name is found. |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::FunctionWrapper::getParameter().
|
inlineprotectedinherited |
name | The name of the parameter. |
ParameterNotFoundException | If no parameter with that name is found in the list. |
Definition at line 175 of file AbstractParametrizable.h.
References bpp::ParameterList::getParameter(), bpp::AbstractParametrizable::parameters_, and bpp::AbstractParametrizable::prefix_.
Referenced by bpp::AbstractParameterAliasable::deleteParameter_(), bpp::AbstractParametrizable::getParameterWithNamespace_(), bpp::ConstantDistribution::restrictToConstraint(), bpp::TruncatedExponentialDiscreteDistribution::restrictToConstraint(), restrictToConstraint(), and bpp::InvariantMixedDiscreteDistribution::restrictToConstraint().
|
inlineprotectedinherited |
Definition at line 199 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::size().
|
inlineprotectedinherited |
Definition at line 205 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::size().
|
virtualinherited |
Resolves a parameter name according to the current namespace.
Implements bpp::Parametrizable.
Definition at line 63 of file AbstractParametrizable.cpp.
References bpp::TextTools::startsWith().
|
pure virtualinherited |
Resolves a parameter name according to the current namespace.
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::FunctionWrapper::getParameterNameWithoutNamespace(), bpp::BppODiscreteDistributionFormat::read(), and bpp::BppOParametrizableFormat::write().
|
inlinevirtualinherited |
Get all parameters available.
Implements bpp::Parametrizable.
Definition at line 77 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::AbstractParameterAliasable::fireParameterChanged(), bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), and bpp::ParametrizableCollection< N >::removeObject().
|
pure virtualinherited |
Get all parameters available.
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, bpp::DirectionFunction, and bpp::AbstractParametrizable.
Referenced by bpp::NewtonOneDimension::doStep(), bpp::FunctionWrapper::getParameters(), bpp::BppODiscreteDistributionFormat::read(), bpp::AbstractNumericalDerivative::setParameterValue(), bpp::AbstractOptimizer::step(), and bpp::BppOParametrizableFormat::write().
|
inlineprotectedinherited |
Definition at line 212 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::parameters_.
Referenced by bpp::AbstractParameterAliasable::AbstractParameterAliasable(), and bpp::AbstractParameterAliasable::operator=().
|
inlinevirtualinherited |
Get the value for parameter of name 'name'.
name | The name of the parameter. |
Implements bpp::Parametrizable.
Definition at line 84 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter(), and bpp::Parameter::getValue().
Referenced by bpp::DirichletDiscreteDistribution::applyParameters(), bpp::ConstantDistribution::fireParameterChanged(), bpp::GaussianDiscreteDistribution::fireParameterChanged(), bpp::ExponentialDiscreteDistribution::fireParameterChanged(), bpp::GammaDiscreteDistribution::fireParameterChanged(), bpp::BetaDiscreteDistribution::fireParameterChanged(), bpp::InvariantMixedDiscreteDistribution::fireParameterChanged(), bpp::AutoCorrelationTransitionMatrix::fireParameterChanged(), bpp::TruncatedExponentialDiscreteDistribution::fireParameterChanged(), bpp::FullHmmTransitionMatrix::fireParameterChanged(), fireParameterChanged(), bpp::MixtureOfDiscreteDistributions::fireParameterChanged(), bpp::Simplex::fireParameterChanged(), bpp::ExponentialDiscreteDistribution::randC(), bpp::GammaDiscreteDistribution::randC(), bpp::BetaDiscreteDistribution::randC(), bpp::TruncatedExponentialDiscreteDistribution::randC(), and bpp::ConstantDistribution::restrictToConstraint().
|
pure virtualinherited |
Get the value for parameter of name 'name'.
name | The name of the parameter. |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::FunctionWrapper::getParameterValue(), and bpp::BppODiscreteDistributionFormat::read().
|
inlineprotectedinherited |
name | The name of the parameter, including its namespace. |
ParameterNotFoundException | If no parameter with that name is found in the list. |
Definition at line 185 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter_().
|
inlineprotectedinherited |
name | The name of the parameter, including its namespace. |
ParameterNotFoundException | If no parameter with that name is found in the list. |
Definition at line 194 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::getParameter().
|
virtualinherited |
Implements bpp::DiscreteDistribution.
Definition at line 158 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
virtualinherited |
categoryIndex | Class index. |
Implements bpp::DiscreteDistribution.
Definition at line 123 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
Referenced by bpp::BppODiscreteDistributionFormat::write().
|
virtualinherited |
category | The value associated to the class. |
Implements bpp::DiscreteDistribution.
Definition at line 135 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
inline |
Definition at line 130 of file SimpleDiscreteDistribution.h.
References givenRanges_.
Referenced by bpp::BppODiscreteDistributionFormat::write().
|
virtualinherited |
category | The class value. |
Implements bpp::DiscreteDistribution.
Definition at line 264 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
virtualinherited |
category | The class value. |
Implements bpp::DiscreteDistribution.
Definition at line 247 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
inlinevirtual |
Reimplemented from bpp::AbstractDiscreteDistribution.
Definition at line 142 of file SimpleDiscreteDistribution.h.
References bpp::AbstractDiscreteDistribution::distribution_.
|
virtualinherited |
value |
Implements bpp::DiscreteDistribution.
Definition at line 289 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::bounds_, bpp::AbstractDiscreteDistribution::distribution_, bpp::AbstractDiscreteDistribution::intMinMax_, bpp::IntervalConstraint::isCorrect(), and bpp::TextTools::toString().
|
pure virtualinherited |
Tell if there is a parameter with specified name.
name | The name of the parameter to look for. |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::FunctionWrapper::hasParameter().
|
inlinevirtualinherited |
Tell if there is a parameter with specified name.
name | The name of the parameter to look for. |
Implements bpp::Parametrizable.
Definition at line 75 of file AbstractParametrizable.h.
References bpp::ParameterList::hasParameter(), bpp::AbstractParametrizable::parameters_, and bpp::AbstractParametrizable::prefix_.
|
inlinevirtualinherited |
Update the parameters from parameters.
Only common parameters with parameters will be updated.
parameters | A list of parameters. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implements bpp::Parametrizable.
Definition at line 111 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), bpp::ParameterList::matchParametersValues(), and bpp::AbstractParametrizable::parameters_.
Referenced by bpp::AbstractParameterAliasable::aliasParameters(), bpp::Simplex::setFrequencies(), bpp::ReparametrizationFunctionWrapper::setParameters(), bpp::TestFunction::setParameters(), and bpp::FullHmmTransitionMatrix::setTransitionProbabilities().
|
pure virtualinherited |
Update the parameters from parameters.
Only common parameters with parameters will be updated.
parameters | A list of parameters. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implemented in bpp::InfinityFunctionWrapper, bpp::FunctionWrapper, bpp::AbstractNumericalDerivative, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::InvariantMixedDiscreteDistribution::fireParameterChanged(), bpp::AbstractNumericalDerivative::matchParametersValues(), bpp::FunctionWrapper::matchParametersValues(), and bpp::InfinityFunctionWrapper::matchParametersValues().
SimpleDiscreteDistribution & SimpleDiscreteDistribution::operator= | ( | const SimpleDiscreteDistribution & | sdd | ) |
Definition at line 201 of file SimpleDiscreteDistribution.cpp.
References givenRanges_, bpp::AbstractDiscreteDistribution::operator=(), and bpp::AbstractParameterAliasable::operator=().
|
virtual |
Return the cumulative quantile of the continuous version of the distribution, ie .
Implements bpp::DiscreteDistribution.
Definition at line 275 of file SimpleDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
inlineinherited |
Definition at line 216 of file AbstractDiscreteDistribution.h.
References bpp::AbstractDiscreteDistribution::distribution_.
Referenced by bpp::AbstractDiscreteDistribution::discretize(), bpp::BetaDiscreteDistribution::fireParameterChanged(), fireParameterChanged(), bpp::MixtureOfDiscreteDistributions::MixtureOfDiscreteDistributions(), and SimpleDiscreteDistribution().
|
virtualinherited |
Print the distribution (categories and corresponding probabilities) to a stream.
out | The outstream where to print the distribution. |
Implements bpp::DiscreteDistribution.
Definition at line 279 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
virtual |
Return the quantile of the continuous version of the distribution, ie y such that .
Implements bpp::DiscreteDistribution.
Definition at line 259 of file SimpleDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_, and bpp::NumConstants::VERY_BIG().
|
virtualinherited |
Draw a random number from this distribution.
This number will be one of the class values, drawn according to the class probabilities.
Implements bpp::DiscreteDistribution.
Definition at line 197 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_, and bpp::RandomTools::giveRandomNumberBetweenZeroAndEntry().
|
inlinevirtualinherited |
Draw a random number from the continuous version of this distribution, if it exists.
Uses the continuous version of this distribution to draw a random number.
Exception | If there is no continuous version of this distribution. |
Implements bpp::DiscreteDistribution.
Reimplemented in bpp::TruncatedExponentialDiscreteDistribution, bpp::BetaDiscreteDistribution, bpp::ExponentialDiscreteDistribution, bpp::GammaDiscreteDistribution, bpp::GaussianDiscreteDistribution, bpp::ConstantDistribution, and bpp::UniformDiscreteDistribution.
Definition at line 171 of file AbstractDiscreteDistribution.h.
|
inlineprotectedinherited |
Definition at line 249 of file AbstractParameterAliasable.h.
References bpp::AbstractParameterAliasable::independentParameters_, bpp::ParameterList::reset(), and bpp::AbstractParametrizable::resetParameters_().
Referenced by bpp::ParametrizableCollection< N >::clear().
|
virtual |
Restricts the distribution to the domain where the constraint is respected, in addition of other predefined constraints.
c | The Constraint to respect. |
Reimplemented from bpp::AbstractDiscreteDistribution.
Definition at line 316 of file SimpleDiscreteDistribution.cpp.
References bpp::IntervalConstraint::clone(), bpp::AbstractDiscreteDistribution::distribution_, bpp::AbstractParametrizable::getNumberOfParameters(), bpp::AbstractParametrizable::getParameter_(), givenRanges_, bpp::AbstractDiscreteDistribution::intMinMax_, bpp::IntervalConstraint::isCorrect(), bpp::Parameter::removeConstraint(), bpp::AbstractDiscreteDistribution::restrictToConstraint(), bpp::Parameter::setConstraint(), and bpp::TextTools::toString().
|
virtualinherited |
Set the probability associated to a class.
If the category does not exist, a new category is created with the corresponding probability. If the category already exist, its probability is set to 'probability'. The sum of all probabilities is not checked.
category | The class value. |
probability | The class probability. |
Implements bpp::DiscreteDistribution.
Definition at line 174 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::distribution_.
|
inlinevirtualinherited |
Set the parameters values to be equals to those of parameters.
The list must contain exactly the same parameters (ie same names) than the parameters available.
parameters | A list with all parameters. |
ParameterNotFoundException | If a some parameter in the list is not in params. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implements bpp::Parametrizable.
Definition at line 90 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::setAllParametersValues().
|
pure virtualinherited |
Set the parameters values to be equals to those of parameters.
The list must contain exactly the same parameters (ie same names) than the parameters available.
parameters | A list with all parameters. |
ParameterNotFoundException | If a some parameter in the list is not in params. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implemented in bpp::InfinityFunctionWrapper, bpp::FunctionWrapper, bpp::AbstractNumericalDerivative, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::AbstractNumericalDerivative::setAllParametersValues(), bpp::FunctionWrapper::setAllParametersValues(), and bpp::InfinityFunctionWrapper::setAllParametersValues().
|
inlinevirtualinherited |
Sets the median value to true to say that the value in a class is proportional to the median value of the class, the proportionality factor being such that the sum of the values equals the expectation of the distribution. If it is set to false, the value is the mean value in the class.
If the median value is modified, the discretization process is launched.
median | tells how the value associated to each class is computed. |
Implements bpp::DiscreteDistribution.
Reimplemented in bpp::MixtureOfDiscreteDistributions, and bpp::InvariantMixedDiscreteDistribution.
Definition at line 218 of file AbstractDiscreteDistribution.h.
References bpp::AbstractDiscreteDistribution::discretize(), and bpp::AbstractDiscreteDistribution::median_.
|
virtualinherited |
Set the namespace for the parameter names.
prefix | The 'namespace', that is a prefix to add to all parameter names. If parameter names are already prefixed, the new prefix will be used instead. |
Implements bpp::Parametrizable.
Reimplemented in bpp::MixtureOfDiscreteDistributions, and bpp::InvariantMixedDiscreteDistribution.
Definition at line 218 of file AbstractParameterAliasable.cpp.
References bpp::AbstractParameterAliasable::aliasListenersRegister_, bpp::AbstractParametrizable::getNamespace(), bpp::AbstractParameterAliasable::independentParameters_, bpp::AbstractParametrizable::setNamespace(), bpp::ParameterList::size(), and bpp::TextTools::startsWith().
Referenced by bpp::InvariantMixedDiscreteDistribution::setNamespace(), and bpp::MixtureOfDiscreteDistributions::setNamespace().
|
pure virtualinherited |
Set the namespace for the parameter names.
prefix | The 'namespace', that is a prefix to add to all parameter names. If parameter names are already prefixed, the new prefix will be used instead. |
Implemented in bpp::FunctionWrapper, bpp::ParametrizableAdapter, bpp::AbstractParameterAliasable, bpp::MixtureOfDiscreteDistributions, bpp::AbstractParametrizable, and bpp::InvariantMixedDiscreteDistribution.
Referenced by bpp::InvariantMixedDiscreteDistribution::InvariantMixedDiscreteDistribution(), bpp::InvariantMixedDiscreteDistribution::setNamespace(), and bpp::FunctionWrapper::setNamespace().
|
virtualinherited |
sets the number of categories and discretizes if there is a change in this number.
Implements bpp::DiscreteDistribution.
Reimplemented in bpp::MixtureOfDiscreteDistributions, and bpp::InvariantMixedDiscreteDistribution.
Definition at line 96 of file AbstractDiscreteDistribution.cpp.
References bpp::AbstractDiscreteDistribution::discretize(), and bpp::AbstractDiscreteDistribution::numberOfCategories_.
|
inlinevirtualinherited |
Update the parameters from parameters.
parameters must be a subset of all parameters available.
parameters | A list containing all parameters to update. |
ParameterNotFoundException | If a some parameter in params is not in the list. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implements bpp::Parametrizable.
Definition at line 104 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), bpp::AbstractParametrizable::parameters_, and bpp::ParameterList::setParametersValues().
Referenced by bpp::LowMemoryRescaledHmmLikelihood::setParameters(), bpp::LogsumHmmLikelihood::setParameters(), and bpp::RescaledHmmLikelihood::setParameters().
|
pure virtualinherited |
Update the parameters from parameters.
parameters must be a subset of all parameters available.
parameters | A list containing all parameters to update. |
ParameterNotFoundException | If a some parameter in params is not in the list. |
ConstraintException | If a value in parameters does not match the constraint in the corresponding parameter in the list. |
Implemented in bpp::InfinityFunctionWrapper, bpp::FunctionWrapper, bpp::AbstractNumericalDerivative, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::AbstractNumericalDerivative::setParametersValues(), bpp::FunctionWrapper::setParametersValues(), and bpp::InfinityFunctionWrapper::setParametersValues().
|
inlinevirtualinherited |
Set the value of parameter with name name to be equal to value.
name | the name of the parameter to set. |
value | The value of the parameter. |
ParameterNotFoundException | If no parameter in the list has the name name. |
ConstraintException | If value does not match the constraint associated to parameter name. |
Implements bpp::Parametrizable.
Definition at line 97 of file AbstractParametrizable.h.
References bpp::AbstractParametrizable::fireParameterChanged(), bpp::AbstractParametrizable::parameters_, bpp::AbstractParametrizable::prefix_, bpp::ParameterList::setParameterValue(), and bpp::ParameterList::subList().
|
pure virtualinherited |
Set the value of parameter with name name to be equal to value.
name | the name of the parameter to set. |
value | The value of the parameter. |
ParameterNotFoundException | If no parameter in the list has the name name. |
ConstraintException | If value does not match the constraint associated to parameter name. |
Implemented in bpp::InfinityFunctionWrapper, bpp::FunctionWrapper, bpp::AbstractNumericalDerivative, bpp::ParametrizableAdapter, and bpp::AbstractParametrizable.
Referenced by bpp::AbstractNumericalDerivative::setParameterValue(), bpp::FunctionWrapper::setParameterValue(), and bpp::InfinityFunctionWrapper::setParameterValue().
|
inlinevirtualinherited |
Reimplemented from bpp::DiscreteDistribution.
Definition at line 202 of file AbstractDiscreteDistribution.h.
References bpp::AbstractDiscreteDistribution::intMinMax_, and bpp::IntervalConstraint::strictLowerBound().
|
inlinevirtualinherited |
Reimplemented from bpp::DiscreteDistribution.
Definition at line 207 of file AbstractDiscreteDistribution.h.
References bpp::AbstractDiscreteDistribution::intMinMax_, and bpp::IntervalConstraint::strictUpperBound().
|
pure virtualinherited |
Detach two parameters previously set as 'aliased'.
The values of the two parameters will now be independent.
p1 | Original parameter. |
p2 | Aliased parameter. |
ParameterNotFoundException | if p1 or p2 do not correspond to existing parameters. |
Exception | when trying to perform non-valid dissociation. |
Implemented in bpp::AbstractParameterAliasable.
|
virtualinherited |
Detach two parameters previously set as 'aliased'.
The values of the two parameters will now be independent.
p1 | Original parameter. |
p2 | Aliased parameter. |
ParameterNotFoundException | if p1 or p2 do not correspond to existing parameters. |
Exception | when trying to perform non-valid dissociation. |
Implements bpp::ParameterAliasable.
Definition at line 198 of file AbstractParameterAliasable.cpp.
Referenced by bpp::ParametrizableCollection< N >::removeObject().
|
protectedinherited |
Definition at line 117 of file AbstractDiscreteDistribution.h.
Referenced by discretize(), bpp::AbstractDiscreteDistribution::discretize(), bpp::AbstractDiscreteDistribution::getBound(), bpp::AbstractDiscreteDistribution::getValueCategory(), bpp::AbstractDiscreteDistribution::operator=(), bpp::InvariantMixedDiscreteDistribution::updateDistribution(), and bpp::MixtureOfDiscreteDistributions::updateDistribution().
|
protectedinherited |
These fields must be initialized in the constructor of the derived classes.
Definition at line 115 of file AbstractDiscreteDistribution.h.
Referenced by bpp::AbstractDiscreteDistribution::add(), bpp::ConstantDistribution::ConstantDistribution(), discretize(), bpp::AbstractDiscreteDistribution::discretize(), Expectation(), bpp::ConstantDistribution::fireParameterChanged(), fireParameterChanged(), bpp::AbstractDiscreteDistribution::getCategories(), bpp::AbstractDiscreteDistribution::getCategory(), bpp::AbstractDiscreteDistribution::getIInfCumulativeProbability(), bpp::AbstractDiscreteDistribution::getInfCumulativeProbability(), getLowerBound(), bpp::AbstractDiscreteDistribution::getProbabilities(), bpp::AbstractDiscreteDistribution::getProbability(), bpp::AbstractDiscreteDistribution::getSSupCumulativeProbability(), bpp::AbstractDiscreteDistribution::getSupCumulativeProbability(), getUpperBound(), bpp::AbstractDiscreteDistribution::getValueCategory(), bpp::AbstractDiscreteDistribution::operator=(), pProb(), bpp::AbstractDiscreteDistribution::precision(), bpp::AbstractDiscreteDistribution::print(), qProb(), bpp::AbstractDiscreteDistribution::rand(), restrictToConstraint(), bpp::AbstractDiscreteDistribution::set(), SimpleDiscreteDistribution(), bpp::InvariantMixedDiscreteDistribution::updateDistribution(), and bpp::MixtureOfDiscreteDistributions::updateDistribution().
|
private |
Definition at line 68 of file SimpleDiscreteDistribution.h.
Referenced by getRanges(), operator=(), restrictToConstraint(), and SimpleDiscreteDistribution().
|
protectedinherited |
the interval where the distribution is defined/restricted.
Definition at line 124 of file AbstractDiscreteDistribution.h.
Referenced by bpp::BetaDiscreteDistribution::BetaDiscreteDistribution(), bpp::AbstractDiscreteDistribution::discretize(), bpp::ExponentialDiscreteDistribution::ExponentialDiscreteDistribution(), bpp::BetaDiscreteDistribution::fireParameterChanged(), bpp::TruncatedExponentialDiscreteDistribution::fireParameterChanged(), fireParameterChanged(), bpp::GammaDiscreteDistribution::GammaDiscreteDistribution(), bpp::AbstractDiscreteDistribution::getLowerBound(), bpp::AbstractDiscreteDistribution::getUpperBound(), bpp::AbstractDiscreteDistribution::getValueCategory(), bpp::AbstractDiscreteDistribution::operator=(), bpp::UniformDiscreteDistribution::randC(), bpp::GammaDiscreteDistribution::randC(), bpp::ExponentialDiscreteDistribution::randC(), bpp::BetaDiscreteDistribution::randC(), bpp::TruncatedExponentialDiscreteDistribution::randC(), bpp::ConstantDistribution::restrictToConstraint(), bpp::TruncatedExponentialDiscreteDistribution::restrictToConstraint(), restrictToConstraint(), bpp::AbstractDiscreteDistribution::restrictToConstraint(), bpp::AbstractDiscreteDistribution::strictLowerBound(), bpp::AbstractDiscreteDistribution::strictUpperBound(), bpp::TruncatedExponentialDiscreteDistribution::TruncatedExponentialDiscreteDistribution(), bpp::UniformDiscreteDistribution::UniformDiscreteDistribution(), bpp::InvariantMixedDiscreteDistribution::updateDistribution(), and bpp::MixtureOfDiscreteDistributions::updateDistribution().
|
protectedinherited |
Tells if the values in the classes is associated to the median or not (default: false)
Definition at line 131 of file AbstractDiscreteDistribution.h.
Referenced by bpp::AbstractDiscreteDistribution::discretize(), bpp::AbstractDiscreteDistribution::operator=(), bpp::InvariantMixedDiscreteDistribution::setMedian(), bpp::MixtureOfDiscreteDistributions::setMedian(), and bpp::AbstractDiscreteDistribution::setMedian().
|
protectedinherited |
Definition at line 111 of file AbstractDiscreteDistribution.h.
Referenced by discretize(), bpp::AbstractDiscreteDistribution::discretize(), bpp::AbstractDiscreteDistribution::getBound(), bpp::AbstractDiscreteDistribution::getBounds(), bpp::AbstractDiscreteDistribution::getNumberOfCategories(), bpp::AbstractDiscreteDistribution::operator=(), bpp::AbstractDiscreteDistribution::setNumberOfCategories(), SimpleDiscreteDistribution(), bpp::InvariantMixedDiscreteDistribution::updateDistribution(), and bpp::MixtureOfDiscreteDistributions::updateDistribution().