Clusters defined by a binary space partitioning tree. More...
#include <shark/Models/Clustering/HierarchicalClustering.h>
Inheritance diagram for shark::HierarchicalClustering< InputT >:Public Types | |
| typedef base_type::BatchInputType | BatchInputType |
| typedef base_type::BatchOutputType | BatchOutputType |
Public Types inherited from shark::AbstractClustering< InputT > | |
| enum | Feature { HAS_SOFT_MEMBERSHIP = 1 } |
| typedef InputT | InputType |
| typedef unsigned int | OutputType |
| typedef Batch< InputType >::type | BatchInputType |
| typedef Batch< OutputType >::type | BatchOutputType |
| typedef TypedFlags< Feature > | Features |
| typedef TypedFeatureNotAvailableException< Feature > | FeatureNotAvailableException |
Public Member Functions | |
| HierarchicalClustering (const tree_type *tree) | |
| Constructor. More... | |
| std::string | name () const |
| From INameable: return the class name. More... | |
| std::size_t | numberOfClusters () const |
| Return the number of clusters. More... | |
| BatchOutputType | hardMembership (BatchInputType const &patterns) const |
| Return the best matching cluster for very pattern in the batch. More... | |
| RealVector | parameterVector () const |
| from IParameterizable More... | |
| void | setParameterVector (RealVector const &newParameters) |
| from IParameterizable More... | |
| std::size_t | numberOfParameters () const |
| from IParameterizable More... | |
Public Member Functions inherited from shark::AbstractClustering< InputT > | |
| const Features & | features () const |
| virtual void | updateFeatures () |
| bool | hasSoftMembershipFunction () const |
| virtual unsigned int | hardMembership (InputType const &pattern) const |
| Compute best matching cluster. More... | |
| virtual RealVector | softMembership (InputType const &pattern) const |
| Compute cluster membership function. More... | |
| virtual RealMatrix | softMembership (BatchInputType const &patterns) const |
| Compute cluster membership function. More... | |
| void | read (InArchive &archive) |
| empty default implementation of ISerializable::read More... | |
| void | write (OutArchive &archive) const |
| empty default implementation of ISerializable::write More... | |
Public Member Functions inherited from shark::INameable | |
| virtual | ~INameable () |
Public Member Functions inherited from shark::IParameterizable | |
| virtual | ~IParameterizable () |
Public Member Functions inherited from shark::ISerializable | |
| virtual | ~ISerializable () |
| Virtual d'tor. More... | |
| void | load (InArchive &archive, unsigned int version) |
| Versioned loading of components, calls read(...). More... | |
| void | save (OutArchive &archive, unsigned int version) const |
| Versioned storing of components, calls write(...). More... | |
| BOOST_SERIALIZATION_SPLIT_MEMBER () | |
Protected Attributes | |
| tree_type const * | mep_tree |
| binary tree More... | |
Protected Attributes inherited from shark::AbstractClustering< InputT > | |
| Features | m_features |
Clusters defined by a binary space partitioning tree.
Definition at line 59 of file HierarchicalClustering.h.
| typedef base_type::BatchInputType shark::HierarchicalClustering< InputT >::BatchInputType |
Definition at line 64 of file HierarchicalClustering.h.
| typedef base_type::BatchOutputType shark::HierarchicalClustering< InputT >::BatchOutputType |
Definition at line 65 of file HierarchicalClustering.h.
|
inline |
Constructor.
| tree | tree object underlying the clustering |
Definition at line 73 of file HierarchicalClustering.h.
References SHARK_CHECK.
|
inlinevirtual |
Return the best matching cluster for very pattern in the batch.
Reimplemented from shark::AbstractClustering< InputT >.
Definition at line 89 of file HierarchicalClustering.h.
References shark::BinaryTree< InputT >::hasChildren(), shark::BinaryTree< InputT >::isLeft(), shark::BinaryTree< InputT >::left(), shark::HierarchicalClustering< InputT >::mep_tree, shark::BinaryTree< InputT >::nodes(), shark::BinaryTree< InputT >::right(), and shark::size().
|
inlinevirtual |
From INameable: return the class name.
Reimplemented from shark::INameable.
Definition at line 79 of file HierarchicalClustering.h.
|
inlinevirtual |
Return the number of clusters.
Implements shark::AbstractClustering< InputT >.
Definition at line 84 of file HierarchicalClustering.h.
References shark::HierarchicalClustering< InputT >::mep_tree, and shark::BinaryTree< InputT >::nodes().
Referenced by main().
|
inlinevirtual |
from IParameterizable
Reimplemented from shark::IParameterizable.
Definition at line 119 of file HierarchicalClustering.h.
|
inlinevirtual |
from IParameterizable
Reimplemented from shark::IParameterizable.
Definition at line 109 of file HierarchicalClustering.h.
|
inlinevirtual |
from IParameterizable
Reimplemented from shark::IParameterizable.
Definition at line 114 of file HierarchicalClustering.h.
References SHARK_ASSERT.
|
protected |
binary tree
Definition at line 125 of file HierarchicalClustering.h.
Referenced by shark::HierarchicalClustering< InputT >::hardMembership(), and shark::HierarchicalClustering< InputT >::numberOfClusters().