Template Class ExemplarClusteringSubmodularFunction¶
Defined in File ExemplarClusteringSubmodularFunction.h
Inheritance Relationships¶
Base Type¶
public exemcl::SubmodularFunction
(Class SubmodularFunction)
Class Documentation¶
-
template<typename
HostDataType
= float>
classexemcl::cpu
::
ExemplarClusteringSubmodularFunction
: public exemcl::SubmodularFunction¶ This class provides a CPU implementation of the submodular function of exemplar-based clustering.
Public Functions
-
ExemplarClusteringSubmodularFunction
(const MatrixX<HostDataType> &V, int workerCount = -1)¶ Constructs the exemplar clustering submodular function using a ground set V.
- Parameters
V
: The ground set V.
-
double
operator()
(const MatrixX<double> &S) override¶ Evaluates the exemplar cluster-submodular function.
- Return
The submodular function value.
- Parameters
S
: The set to evaluate.
-
double
operator()
(const MatrixX<double> &S) const override¶ Evaluates the exemplar cluster-submodular function.
- Return
The submodular function value.
- Parameters
S
: The set to evaluate.
-
const MatrixX<HostDataType> &
getV
() const¶ Returns a reference to the ground set V.
- Return
As stated above.
-