HLIBpro  2.8.1
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

◆ eval()

virtual double eval ( const TBlockCluster cl) const
pure virtual

return cost of cluster cl not including costs for son clusters

◆ eval_rec()

virtual double eval_rec ( const TBlockCluster cl) const
inlinevirtual

return cost of cluster cl including costs for son clusters