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

Base class for Binary Data. More...

#include <BinaryData.h>

Inheritance diagram for XEM::BinaryData:
Collaboration diagram for XEM::BinaryData:

Public Member Functions

 BinaryData ()
 Default constructor.
 
 BinaryData (const BinaryData &iData)
 Constructor.
 
 BinaryData (int64_t nbSample, int64_t pbDimension, const std::string &dataFileName, int64_t *tabNbModality)
 Constructor.
 
 BinaryData (int64_t nbSample, int64_t pbDimension, std::vector< int64_t > nbModality)
 Constructor.
 
 BinaryData (int64_t nbSample, int64_t pbDimension, std::vector< int64_t > nbModality, int64_t **matrix)
 Constructor.
 
 BinaryData (int64_t nbSample, int64_t pbDimension, int64_t *tabNbModality, double weightTotal, Sample **&matrix, double *weight)
 Constructor for dataReduce.
 
 BinaryData (int64_t nbSample, int64_t pbDimension, Data *originalData, CVBlock &block)
 Constructor (used in DCV context)
 
virtual ~BinaryData ()
 Desctructor.
 
virtual void input (const DataDescription &dataDescription)
 Read data from XEMDataDescription.
 
virtual Dataclone () const
 copy More...
 
virtual Sample ** cloneMatrix ()
 Copy. More...
 
virtual void input (std::ifstream &fi)
 Read data from binary data file. More...
 
virtual void output (std::ostream &fo)
 Write binary data in output file. More...
 
virtual bool verify () const
 
Sample ** getDataMatrix () const
 Get matrix of data Sample. More...
 
int64_t * getDataTabValue (int64_t idxSample) const
 Get matrix of data Sample. More...
 
int64_t * getTabNbModality () const
 Get tab modality. More...
 
DatareduceData (std::vector< int64_t > &correspondcenceOriginDataToReduceData, Partition *knownPartition, Partition *initPartition, Partition *&oKnownPartition, Partition *&oInitPartition)
 
- Public Member Functions inherited from XEM::Data
 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
 
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 Binary Data.

Author
F Langrognet

Member Function Documentation

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

copy

Returns
A copy of data

Implements XEM::Data.

Here is the call graph for this function:

Here is the caller graph for this function:

Sample ** XEM::BinaryData::cloneMatrix ( )
virtual

Copy.

Returns
A copy data matrix

Implements XEM::Data.

Sample ** XEM::BinaryData::getDataMatrix ( ) const
inline

Get matrix of data Sample.

Returns
A vector of XEMSample

Here is the caller graph for this function:

int64_t * XEM::BinaryData::getDataTabValue ( int64_t  idxSample) const

Get matrix of data Sample.

Parameters
idxSampleIndex of sample to get values
Returns
A vector of XEMSample

Here is the caller graph for this function:

int64_t * XEM::BinaryData::getTabNbModality ( ) const
inline

Get tab modality.

Returns
A vector of number of modality

Here is the caller graph for this function:

void XEM::BinaryData::input ( std::ifstream &  fi)
virtual

Read data from binary data file.

Parameters
fiBinary Data file to read

Implements XEM::Data.

void XEM::BinaryData::output ( std::ostream &  fo)
virtual

Write binary data in output file.

Parameters
foOutput file to write into

Implements XEM::Data.

Here is the call graph for this function:


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