Template Class ExemplarClusteringSubmodularFunction

Inheritance Relationships

Base Type

Class Documentation

template<typename HostDataType = float>
class exemcl::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.