37#ifndef STK_BERNOULLIMODEL_H
38#define STK_BERNOULLIMODEL_H
56template <
class Array,
class WColVector>
63 typedef typename Array::Type
Type;
In this file we implement the final class CArrayVector.
In this file we define the class IUnivStatModel.
In this file we define the Bernoulli distribution.
A Bernoulli model, is a statistical model of the following form.
BernoulliModel()
default constructor.
Array::Type Type
Type of the data contained in the container.
virtual void computeParameters()
compute the empirical probability of success based on the observed variables.
virtual int computeNbFreeParameters() const
compute the number of free parameters
BernoulliModel(BernoulliModel const &model)
Copy constructor.
BernoulliModel(Array const *p_data)
Constructor with a ptr on the data set.
virtual void computeParameters(WColVector const &weights)
compute the weighted empirical probability of success based on the observed variables.
IUnivStatModel< Array, WColVector, Law::Bernoulli > Base
Base class.
virtual ~BernoulliModel()
destructor
BernoulliModel * clone() const
clone patern
BernoulliModel(Array const &data)
Constructor with data set.
Array const * p_data() const
get the data set
Base class for all Statistical Models.
Law::Bernoulli law_
The probability law of the model.
Bernoulli probability law.
void setProb(Real const &prob)
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Arrays::SumOp< Lhs, Rhs >::result_type sum(Lhs const &lhs, Rhs const &rhs)
convenience function for summing two arrays
@ binaryNA_
Not Available value.
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.