7 #include "clustset.h"
\r
8 #include "distfunc.h"
\r
11 class ClustSetDF : public ClustSet
\r
14 ClustSetDF(const DistFunc &DF) :
\r
20 virtual unsigned GetLeafCount()
\r
22 return m_ptrDF->GetCount();
\r
24 virtual const char *GetLeafName(unsigned uNodeIndex)
\r
26 return m_ptrDF->GetName(uNodeIndex);
\r
28 virtual unsigned GetLeafId(unsigned uNodeIndex)
\r
30 return m_ptrDF->GetId(uNodeIndex);
\r
32 virtual void JoinNodes(const Clust &C, unsigned uLeftNodeIndex,
\r
33 unsigned uRightNodeIndex, unsigned uJoinedNodeIndex,
\r
34 double *ptrdLeftLength, double *ptrdRightLength)
\r
36 Quit("ClustSetDF::JoinNodes, should never be called");
\r
38 virtual double ComputeDist(const Clust &C, unsigned uNodeIndex1,
\r
39 unsigned uNodeIndex2)
\r
41 return m_ptrDF->GetDist(uNodeIndex1, uNodeIndex2);
\r
45 const DistFunc *m_ptrDF;
\r
48 #endif // ClustSetDF_h
\r