HLIBpro  2.0
Public Member Functions | List of all members
TDistrBC::TCostFunc Class Referenceabstract

Cost function for block clusters in load balancing. More...

#include <TDistrBC.hh>

Public Member Functions

virtual double eval (const TBlockCluster *cl) const =0
 
virtual double eval_rec (const TBlockCluster *cl) const
 

Detailed Description

The cost function has to return costs associated with given cluster only, i.e. not for son clusters in case of inner nodes.

Member Function Documentation

virtual double eval ( const TBlockCluster cl) const
pure virtual

return cost of cluster cl not including costs for son clusters

virtual double eval_rec ( const TBlockCluster cl) const
inlinevirtual

return cost of cluster cl including costs for son clusters