123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354 |
- #ifndef HierarchicalClusterINCLUDE
- #define HierarchicalClusterINCLUDE
- #include "core/vector/VectorT.h"
- #include "core/vector/MatrixT.h"
-
- #include "ClusterAlgorithm.h"
- #include <vector>
- namespace OBJREC {
- class HierarchicalCluster : public ClusterAlgorithm
- {
- protected:
- int noClasses;
- char method;
- int distanceType;
- int compute_prototypes ( const NICE::VVector & features,
- NICE::VVector & prototypes,
- std::vector<double> & weights,
- const std::vector<int> & assignment );
- char distanceFunction(int distanceType);
- void VVectorToDoubleArray(const NICE::VVector &data,double ** &doublearray,int ** &mask);
- public:
-
-
- HierarchicalCluster( int noClasses , char method='s',int distanceMode=0);
-
-
- virtual ~HierarchicalCluster();
-
- void cluster ( const NICE::VVector & features,
- NICE::VVector & prototypes,
- std::vector<double> & weights,
- std::vector<int> & assignment );
- };
- }
- #endif
|