37#ifndef STK_HDMATRIXGAUSSIANBRIDGE_H
38#define STK_HDMATRIXGAUSSIANBRIDGE_H
41#include "../STK_IMixtureBridge.h"
47template<
int IdRow,
int IdCol,
class Data_>
class HDMatrixGaussianBridge;
54template<
int IdRow_,
int IdCol_,
class Data_>
93template<
int IdRow,
int IdCol,
class Data>
129 mixture_.setData(p_data_->dataij());
In this file we define the HDMatrixGaussianModel class.
template implementation of the IMixture interface allowing to bridge a STK++ mixture with the compose...
std::vector< std::pair< int, int > >::const_iterator ConstIterator
HDMatrixGaussianBridge(Mixture const &mixture, String const &idData, int nbCluster)
protected constructor to use in order to create a bridge.
virtual ~HDMatrixGaussianBridge()
destructor
HDMatrixGaussianBridge(Data *p_dataij, String const &idData, int nbRow, int nbCluster)
default constructor.
virtual HDMatrixGaussianBridge * create() const
This is a standard create function in usual sense.
hidden::MixtureBridgeTraits< HDMatrixGaussianBridge< IdRow, IdCol, Data > >::Parameters Parameters
Type safeValue(int j) const
virtual HDMatrixGaussianBridge * clone() const
This is a standard clone function in usual sense.
IMixtureBridge< HDMatrixGaussianBridge< IdRow, IdCol, Data > > Base
HDMatrixGaussianBridge(HDMatrixGaussianBridge const &bridge)
copy constructor
hidden::MixtureBridgeTraits< HDMatrixGaussianBridge< IdRow, IdCol, Data > >::Mixture Mixture
hidden::MixtureBridgeTraits< HDMatrixGaussianBridge< IdRow, IdCol, Data > >::Type Type
Interface base class for the bridges of the STK++ mixture.
MissingIndexes v_missing_
vector with the coordinates of the missing values
Data * p_dataij_
pointer on the data set
hidden::MixtureBridgeTraits< HDMatrixGaussianBridge< IdRow, IdCol, Data > >::Data Data
virtual void removeMissing()
This function will be used once for imputation of missing data at the initialization step (.
Mixture const & mixture() const
Mixture mixture_
The Mixture to bridge with the composer.
Data *const p_dataij() const
CArrayXX const * p_tik() const
This function can be used in derived classes to get posterior probabilities from the framework.
String const & idData() const
int nbCluster() const
This function can be used in derived classes to get number of classes.
virtual void setData(YArray_ const &y, XArray_ const &x)
set the data set.
The MultidimRegression class allows to regress a multidimensional output variable among a multivariat...
std::basic_string< Char > String
STK fundamental type of a String.
The namespace STK is the main domain space of the Statistical ToolKit project.
HDMatrixModelParameters< Data_ > Parameters
Type of the structure storing the mixture parameters.
std::vector< std::pair< int, int > > MissingIndexes
Type of the array storing missing values indexes.
HDMatrixGaussianModel< IdRow_, IdCol_, Data_ > Mixture
Type of the mixture model.
hidden::Traits< Data_ >::Type Type
Data Type.
std::vector< std::pair< std::pair< int, int >, Type > > MissingValues
Type of the array storing missing values.
MixtureBridgeTraits struct for bridged mixtures The traits struct MixtureBridgeTraits must be special...