shark::HypervolumeCalculator2D Struct Reference

Implementation of the exact hypervolume calculation in 2 dimensions. More...

#include <shark/Algorithms/DirectSearch/Operators/Hypervolume/HypervolumeCalculator2D.h>

Public Member Functions

template<typename Set , typename VectorType >
double operator() (Set const &points, VectorType const &refPoint)
 Executes the algorithm. More...
 

Detailed Description

Implementation of the exact hypervolume calculation in 2 dimensions.

The algorithm has complexity n log(n) and works by ordering the data by the first dimension and then computing the upper riemann sum skipping dominated points

Definition at line 45 of file HypervolumeCalculator2D.h.

Member Function Documentation

◆ operator()()

template<typename Set , typename VectorType >
double shark::HypervolumeCalculator2D::operator() ( Set const &  points,
VectorType const &  refPoint 
)
inline

Executes the algorithm.

Parameters
[in]pointsThe set \(S\) of points for which to compute the volume
[in]refPointThe reference point \(\vec{r} \in \mathbb{R}^2\) for the hypervolume calculation, needs to fulfill: \( \forall s \in S: s \preceq \vec{r}\). .

Definition at line 51 of file HypervolumeCalculator2D.h.

References SIZE_CHECK.


The documentation for this struct was generated from the following file: