30 #include "WDataSetHierarchicalClustering.h"
41 std::map< size_t, WFiberCluster::SPtr > allClusters )
64 return "DataSetHierarchicalClustering";
69 return "A tree of fiber clusters.";
85 std::vector< WTreeNode::SPtr > result;
87 if( node->level() <= level )
89 result.push_back( node );
93 for(
size_t i = 0; i < node->getChildren().size(); i++ )
96 result.reserve( result.size() + c.size() );
97 result.insert( result.end(), c.begin(), c.end() );
virtual const std::string getName() const
Gets the name of this prototype.
std::map< size_t, WFiberCluster::SPtr > getClusterMap()
Returns the whole cluster map.
virtual const std::string getDescription() const
Gets the description for this prototype.
std::map< size_t, WFiberCluster::SPtr > m_clusters
Stores the cluster map.
virtual ~WDataSetHierarchicalClustering()
Destructor.
static boost::shared_ptr< WPrototyped > getPrototype()
Returns a prototype instantiated with the true type of the deriving class.
WTreeNode::SPtr getRootNode()
Returns the root cluster.
std::vector< WTreeNode::SPtr > getClustersDownToLevel(WTreeNode::SPtr node, size_t level)
Returns all clusters down (root node has highest level) to a certain level in the hierarchy...
WDataSetHierarchicalClustering()
Constructs a new set of tracts.
static boost::shared_ptr< WPrototyped > m_prototype
The prototype as singleton.
WTreeNode::SPtr m_rootNode
Pointer to the root cluster.
boost::shared_ptr< WTreeNode > SPtr
Shared pointer abbreviation.