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)
 Constructor.
 
 Partition (int64_t nbSample, int64_t nbCluster, const NumericPartitionFile &partitionFile)
 Constructor.
 
 Partition (const Label *label, int64_t nbCluster)
 constructor from a XEMLabel
 
 Partition (Partition *originalPartition, CVBlock &block)
 Constructor.
 
virtual ~Partition ()
 Destructor.
 
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)
 

Friends

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)

Author
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.

Parameters
nbSampleThe number of samples
nbClusterThe number of clusters

Friends And Related Function Documentation

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

Friend method.

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

Friend method.

Returns
Operator >> overloaded to read Partition from input files

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