Main Page   Class Hierarchy   Alphabetical List   Compound List   Compound Members  

prapi::Cluster< T, I, C > Class Template Reference

#include <Cluster.h>

Inheritance diagram for prapi::Cluster< T, I, C >:

List< Sample< T, I, C > > Iterator< T > Object List of all members.

Detailed Description

template<class T, class I = std::string, class C = int>
class prapi::Cluster< T, I, C >

Cluster is a sample list with an additional sample as a cluster representative as used by the clustering algorithms.

Public Methods

 Cluster ()
 Create an empty cluster.

 Cluster (const Cluster &other)
 Copy a cluster.

Cluster & operator= (const Cluster &other)
 Copy a cluster.

Sample< T, I, C > getRepresentative (void) const
 Get a copy of the current cluster representative.

Sample< T, I, C > & representative (void)
 Get the current cluster representative.

void setRepresentative (const Sample< T, I, C > &smpl) const
 Set the cluster representative.

Protected Attributes

Sample< T, I, C > _representativeSample

The documentation for this class was generated from the following file:
Documentation generated on 11.09.2003 with Doxygen.
The documentation is copyrighted material.
Copyright © Topi Mäenpää 2003. All rights reserved.