#include <cluster.h>
Inheritance diagram for fl::Kohonen:

Public Methods | |
| Kohonen (int width, float sigma=1.0, float learningRate=0.1, float decayRate=0.5) | |
| Kohonen (std::istream &stream) | |
| virtual void | run (const std::vector< Vector< float > > &data) |
| Peform clustering on collection of points. | |
| virtual int | classify (const Vector< float > &point) |
| Determine the single best class of given point. | |
| virtual Vector< float > | distribution (const Vector< float > &point) |
| Return a probability distribution over the classes. Row number in the returned Vector corresponds to class number. | |
| virtual int | classCount () |
| Returns the number of classes. | |
| virtual Vector< float > | representative (int group) |
| Return a representative member of group. "group" has same semantics as return value of classify (); we just can't use the word "class" because it is a keyword in C++. :). | |
| virtual void | read (std::istream &stream) |
| virtual void | write (std::ostream &stream, bool withName=false) |
Public Attributes | |
| std::vector< ClusterCosine > | map |
| int | width |
| Number of discrete positions in one dimension. | |
| float | sigma |
| Of Gaussian that determines neighborhood to be updated. | |
| float | learningRate |
| How much to scale feature vector during update. | |
| float | decayRate |
| How much to scale learningRate after each iteration. | |
|
||||||||||||||||||||
|
|
|
|
|
|
|
Returns the number of classes.
Implements fl::ClusterMethod. |
|
|
Determine the single best class of given point.
Implements fl::ClusterMethod. |
|
|
Return a probability distribution over the classes. Row number in the returned Vector corresponds to class number.
Implements fl::ClusterMethod. |
|
|
Reimplemented from fl::ClusterMethod. |
|
|
Return a representative member of group. "group" has same semantics as return value of classify (); we just can't use the word "class" because it is a keyword in C++. :).
Implements fl::ClusterMethod. |
|
|
Peform clustering on collection of points.
Implements fl::ClusterMethod. |
|
||||||||||||
|
Reimplemented from fl::ClusterMethod. |
|
|
How much to scale learningRate after each iteration.
|
|
|
How much to scale feature vector during update.
|
|
|
|
|
|
Of Gaussian that determines neighborhood to be updated.
|
|
|
Number of discrete positions in one dimension.
|
1.2.18