shark::Sampler< Rng > Struct Template Reference

Samples a random point. More...

#include <shark/Algorithms/DirectSearch/Indicators/LeastContributorApproximator.h>

Public Member Functions

template<typename Set >
bool operator() (const Set &s, typename Set::iterator point)
 Samples a random point and checks whether it is dominated or not. More...
 

Detailed Description

template<typename Rng>
struct shark::Sampler< Rng >

Samples a random point.

Definition at line 56 of file LeastContributorApproximator.h.

Member Function Documentation

§ operator()()

template<typename Rng>
template<typename Set >
bool shark::Sampler< Rng >::operator() ( const Set &  s,
typename Set::iterator  point 
)
inline

Samples a random point and checks whether it is dominated or not.

Template Parameters
SetThe type of the set of points.
Parameters
[in]sThe set of individuals to check the sampled point against.
[in]pointIterator to the point in the supplied that shall serve as basis for the random point.
Returns
true if the sample was successful (i.e. non-dominated) and false otherwise.

Definition at line 70 of file LeastContributorApproximator.h.

References shark::uni().


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