14 template <
class ScalarType>
52 VectorType &
GetCentroid(
unsigned int i) {
return m_Centroids[i];}
56 long double computeDistance(VectorType &vec1, VectorType &vec2);
58 DataHolderType m_ClassesMembership;
59 DataHolderType m_Centroids;
60 DataHolderType m_InputData;
61 VectorType m_DataWeights;
63 unsigned int m_NbClass, m_NbInputs;
65 unsigned int m_MaxIterations;
68 bool m_SpectralClusterInit;
72 double m_RelStopCriterion;
76 std::vector <long double> m_DistancesPointsCentroids;
77 DataHolderType m_PowMemberships;
78 VectorType m_TmpVector;
79 VectorType m_TmpWeights;
82 VectorType m_WorkVector, m_WorkLogVector;
std::vector< VectorType > DataHolderType
void SetMValue(double mV)
void InitializeClassesMemberships(DataHolderType &classM)
void SetFlagSpectralClustering(bool flag)
void ResetClassesMemberships()
void InitializeCMeansFromData()
virtual ~FuzzyCMeansFilter()
VectorType & GetClassesMembership(unsigned int i)
void SetInputData(DataHolderType &data)
std::vector< ScalarType > VectorType
void SetVerbose(bool verb)
bool endConditionReached(DataHolderType &oldMemberships)
void SetSphericalAverageType(CentroidAverageType spher)
void SetNbClass(unsigned int nbC)
void SetRelStopCriterion(double rC)
void SetMaxIterations(unsigned int mIt)
VectorType & GetCentroid(unsigned int i)
void SetDataWeights(VectorType &val)