37#ifndef STK_JOINTGAMMAMODEL_H
38#define STK_JOINTGAMMAMODEL_H
109template <
class Array,
class WColVector>
115 typedef typename Array::Type
Type;
150 {
return 2*
p_data()->sizeCols();}
A Array2DPoint is a one dimensional horizontal container.
In this file we declare raw the functions.
In this file we define the interface IMultiParameters.
In this file we define the class IMultiStatModel.
In this file we define the Gamma probability distribution.
Derived & resize(Range const &I, Range const &J)
resize the array.
Interface base class for functions.
Interface base class for the parameters of a multivariate model.
Range const & range() const
Interface base class for all Multivariate Statistical Models.
hidden::StatModelTraits< Array >::WColVector WColVector
Type of the vector with the weights.
Data const *const p_data() const
dloglikelihood(Real const &mean, Real const &meanLog)
A joint Gamma model is a statistical model of the following form.
virtual Real computeLnLikelihood(RowVector const &rowData) const
compute the log Likelihood of an observation.
IMultiStatModel< Array, WColVector, JointGammaParameters > Base
Base class.
hidden::Traits< Array >::Row RowVector
Type of the row vector of the container.
Array2DPoint< Real > const & meanLog() const
vector of the mean log of the observations
virtual void computeParameters()
compute the parameters
JointGammaModel()
default constructor.
Array2DPoint< Real > & shape()
hidden::Traits< Array >::Col ColVector
Type of the column vector of the container.
Array2DPoint< Real > const & variance() const
vector of the variance of the observations
Array2DPoint< Real > const & shape() const
JointGammaModel(Array const &data)
Constructor with data set.
virtual void computeParameters(WColVector const &weights)
compute the weighted parameters
Array2DPoint< Real > & variance()
vector of the variance of the observations
JointGammaModel(JointGammaModel const &model)
Copy constructor.
Array2DPoint< Real > const & scale() const
Array2DPoint< Real > & mean()
JointGammaModel(Array const *p_data)
Constructor with a ptr on the data set.
virtual int computeNbFreeParameters() const
compute the number of free parameters
Array::Type Type
Type of the data contained in the container.
Array2DPoint< Real > const & mean() const
virtual ~JointGammaModel()
destructor
Array2DPoint< Real > & scale()
JointGammaModel * clone() const
clone pattern.
Array2DPoint< Real > & meanLog()
vector of the mean log of the observations
virtual Real lpdf(Real const &x) const
Compute.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
Index sub-vector region: Specialization when the size is unknown.
Real psi_raw(Real x)
Compute the psi function.
Real findZero(IFunction< Function > const &f, Real const &x0, Real const &x1, Real tol)
find the zero of a function.
Arrays::SumOp< Lhs, Rhs >::result_type sum(Lhs const &lhs, Rhs const &rhs)
convenience function for summing two arrays
double Real
STK fundamental type of Real values.
The namespace STK is the main domain space of the Statistical ToolKit project.
Arithmetic properties of STK fundamental types.
Structure encapsulating the parameters of a Joint Gamma model.
JointGammaParameters(JointGammaParameters const ¶m)
copy constructor.
Array2DPoint< Real > shape_
vector of the shape
JointGammaParameters()
default constructor
Array2DPoint< Real > meanLog_
vector of the mean log of the observations
void resizeImpl(Range const &range)
resize the set of parameter
Array2DPoint< Real > scale_
vector of the scale
Array2DPoint< Real > mean_
vector of the mean of the observations
Array2DPoint< Real > variance_
vector of the variance of the observations
~JointGammaParameters()
destructor
JointGammaParameters(Range const &range)
default constructor