Xmipp
v3.23.11-Nereus
|
#include <fcmeans.h>
Public Member Functions | |
FuzzyCMeans (double _m, double _epsilon, unsigned _epochs) | |
virtual | ~FuzzyCMeans () |
virtual void | train (FuzzyCodeBook &_xmippDS, TS &_examples) const |
virtual double | fuzzyTest (const FuzzyCodeBook &_xmippDS, const TS &_examples) const |
virtual double | test (const FuzzyCodeBook &_xmippDS, const TS &_examples) const |
double | F (const FuzzyCodeBook &_xmippDS) const |
double | H (const FuzzyCodeBook &_xmippDS) const |
double | S (const FuzzyCodeBook &_xmippDS, const TS &_examples) const |
Public Member Functions inherited from ClassificationAlgorithm< FuzzyCodeBook > | |
ClassificationAlgorithm (const std::string &_ID="") | |
virtual | ~ClassificationAlgorithm () |
virtual void | train (DS &_ds, const TS &_examples) const |
virtual void | train (DS &_ds, TS &_examples) const |
virtual double | test (const DS &_ds, const TS &_examples) const=0 |
virtual const std::string & | setID () const |
virtual std::string & | setID () |
void | setListener (BaseListener *_listener) |
Protected Member Functions | |
void | printSelf (std::ostream &_os) const |
print itself on standard output More... | |
Protected Attributes | |
double | m |
double | epsilon |
unsigned | epochs |
Protected Attributes inherited from ClassificationAlgorithm< FuzzyCodeBook > | |
std::string | ID |
BaseListener * | listener |
Additional Inherited Members | |
Public Types inherited from ClassificationAlgorithm< FuzzyCodeBook > | |
typedef FuzzyCodeBook | DS |
typedef DS::TS | TS |
This class implements Fuzzy c-means clustering method (Bezdeck) an unsupervised clustering algorithm.
|
inline |
double FuzzyCMeans::F | ( | const FuzzyCodeBook & | _xmippDS | ) | const |
Calculates Partition Coefficient (F) validity functional Parameter: _xmippDS Data structure to train, a codeBook in this case (It should be maximum) For more information see: J.C. Bezdek, "Pattern Recognition with Fuzzy Objective Function Algorithms", Plenum Press, New York, 1981.
Calculates Partition Coefficient (F) validity functional Parameter: _xmippDS Data structure to train, a codeBook in this case
Notes on F: For U in Mfc (fuzzy partition space) 1/C <= F <= 1 for F = 1, U is hard (zeros and ones only) for F = 1/C, U = 1/C*ones(C,n);
(max)
For more information see: J.C. Bezdek, "Pattern Recognition with Fuzzy Objective Function Algorithms", Plenum Press, New York, 1981.
Definition at line 262 of file fcmeans.cpp.
|
virtual |
Tests with the training set using for training. Fuzzy membership is used for testing Parameter: _xmippDS Data structure to train, a codeBook in this case Parameter: _examples The training set returns the quantization error
Tests with the training set using for training. Parameter: _examples The training set
Definition at line 218 of file fcmeans.cpp.
double FuzzyCMeans::H | ( | const FuzzyCodeBook & | _xmippDS | ) | const |
Calculates Partition Entropy (H) validity functional Parameter: _xmippDS Data structure to train, a codeBook in this case (It should be minimum) For more information see: J.C. Bezdek, "Pattern Recognition with Fuzzy Objective Function Algorithms", Plenum Press, New York, 1981.
Calculates Partition Entropy (H) validity functional Parameter: _xmippDS Data structure to train, a codeBook in this case
Notes on H: For U in Mfc 0 <= H <= log(C) for H = 0, U is hard for H = log(C), U = 1/C*ones(C,n); 0 <= 1 - F <= H (strict inequality if U not hard)
(min)
For more information see: J.C. Bezdek, "Pattern Recognition with Fuzzy Objective Function Algorithms", Plenum Press, New York, 1981.
Definition at line 289 of file fcmeans.cpp.
|
protectedvirtual |
print itself on standard output
Reimplemented from ClassificationAlgorithm< FuzzyCodeBook >.
Definition at line 382 of file fcmeans.cpp.
double FuzzyCMeans::S | ( | const FuzzyCodeBook & | _xmippDS, |
const TS & | _examples | ||
) | const |
Calculates Compactness and separation index (S) validity functional Parameter: _xmippDS Data structure to train, a codeBook in this case Parameter: _examples A training set with the training examples (It should be minimum) For more information see: X.L. Xie and G. Beni, "A Validity Measure for Fuzzy Clustering", IEEE Trans. PAMI, 13(8):841-847, 1991.
Calculates Compactness and separation index (S) validity functional Parameter: _xmippDS Data structure to train, a codeBook in this case Parameter: _examples A training set with the training examples
(min)
For more information see: X.L. Xie and G. Beni, "A Validity Measure for Fuzzy Clustering", IEEE Trans. PAMI, 13(8):841-847, 1991.
Definition at line 337 of file fcmeans.cpp.
|
virtual |
Tests the Algorithm in a conventional way. Parameter: _xmippDS Data structure to train, a codeBook in this case Parameter: _examples A training set with the training examples
Test the Algorithm in a conventional way Parameter: _examples A training set with the training examples
Definition at line 184 of file fcmeans.cpp.
|
virtual |
Trains the Algorithm Parameter: _xmippDS Data structure to train, a codeBook in this case Parameter: _examples A training set with the training examples
Ctor from stream Parameter: _is Must have the parameters in the same order than the previous ctor. check out this ************ Trains the Algorithm Parameter: _xmippDS Data structure to train, a codeBook in this case Parameter: _examples A training set with the training examples
Definition at line 50 of file fcmeans.cpp.