mixmod  3.2.0
Mixture models for clustering and classification
 All Classes Namespaces Files Functions Variables Enumerations Friends
XEM::Data Class Referenceabstract

Base class for Data. More...

#include <Data.h>

Inheritance diagram for XEM::Data:

Public Member Functions

 Data ()
 Default constructor.
 
 Data (const Data &iData)
 Constructor.
 
 Data (int64_t nbSample, int64_t pbDimension)
 Constructor.
 
 Data (int64_t nbSample, int64_t pbDimension, double weightTotal, double *weight)
 Constructor (for dataReduce)
 
virtual ~Data ()
 Desctructor.
 
virtual GaussianDatagetGaussianData ()
 
virtual BinaryDatagetBinaryData ()
 
void setWeightTotal (double weightTotal)
 Selector. More...
 
void setWeight (std::string weightFileName)
 setWeight
 
void setWeight (double *weight)
 setWeight
 
void setWeightDefault ()
 setWeightDefault
 
virtual void input (std::ifstream &fi)=0
 Read data from data file Data file to read.
 
virtual void input (const DataDescription &dataDescription)=0
 Read data from XEMDataDescription.
 
virtual void output (std::ostream &fo)=0
 Write data in output file Output file to write into.
 
virtual Dataclone () const =0
 Selector. More...
 
virtual Sample ** cloneMatrix ()=0
 
virtual bool verify () const
 
const std::string & getFileName () const
 
const Sample ** getData () const
 getMatrix
 
const SamplegetDataI (int64_t index) const
 getMatrix[i]
 
const double * getWeight () const
 getWeight
 
const double & getWeightI (int64_t index) const
 getWeight[i]
 
const std::string & getFileNameWeight () const
 get FilenameWeight
 
int64_t getPbDimension () const
 get dimension
 
int64_t getNbSample () const
 get Number of samples
 
bool hasDefaultWeight () const
 hasDefaultWeight
 

Detailed Description

Base class for Data.

Author
F Langrognet

Member Function Documentation

virtual Data* XEM::Data::clone ( ) const
pure virtual

Selector.

Returns
A copy of data

Implemented in XEM::BinaryData, XEM::GaussianData, and XEM::CompositeData.

Here is the caller graph for this function:

virtual BinaryData* XEM::Data::getBinaryData ( )
inlinevirtual

Return pointer to Binary data type. This function should be called only when it is redefined in the derived class.

Reimplemented in XEM::CompositeData.

Here is the caller graph for this function:

virtual GaussianData* XEM::Data::getGaussianData ( )
inlinevirtual

Return pointer to Gaussian data type. This function should be called only when it is redefined in the derived class.

Reimplemented in XEM::CompositeData.

Here is the caller graph for this function:

void XEM::Data::setWeightTotal ( double  weightTotal)

Selector.

Parameters
weightTotalValue to set total weight of samples

The documentation for this class was generated from the following files: