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

Base class for Partition(s) More...

#include <Partition.h>

Public Member Functions

 Partition ()
 Default constructor.
 Partition (Partition *iPartition)
 Partition (int64_t nbSample, int64_t nbCluster, const NumericPartitionFile &partitionFile)
 Partition (const Label *label, int64_t nbCluster)
 constructor from a XEMLabel
 Partition (Partition *originalPartition, CVBlock &block)
virtual ~Partition ()
void setDimension (int64_t nbSample, int64_t nbCluster)
 Set the dimension of the Partition. More...
int64_t getGroupNumber (int64_t idxSample)
bool isComplete ()
int64_t ** getTabValue () const
int64_t * getTabValueI (int64_t index) const
const NumericPartitionFilegetPartitionFile () const
 get Format
int64_t getNbSample () const
 get Number of samples
int64_t getNbCluster () const
 get Number of clusters
bool operator== (Partition &otherPartition)


std::ifstream & operator>> (std::ifstream &fi, Partition &partition)
 Friend method. More...
std::ostream & operator<< (std::ostream &fo, const Partition &partition)
 Friend method. More...

Detailed Description

Base class for Partition(s)

F Langrognet

Member Function Documentation

bool XEM::Partition::isComplete ( )

verify if partition is complete

  • each line has one (and only one) '1'
  • each cluster appears at least one time
void XEM::Partition::setDimension ( int64_t  nbSample,
int64_t  nbCluster 

Set the dimension of the Partition.

nbSampleThe number of samples
nbClusterThe number of clusters

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  fo,
const Partition partition 

Friend method.

Operator << overloaded to write Partition
std::ifstream& operator>> ( std::ifstream &  fi,
Partition partition 

Friend method.

Operator >> overloaded to read Partition from input files

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