LatNet Builder Manual 2.1.3-6
Software Package for Constructing Highly Uniform Point Sets
Loading...
Searching...
No Matches
LatBuilder::Task::Search< LR, ET >::MinObserver Class Reference

Observer of the MinElement functor. More...

#include <Search.h>

Public Member Functions

 MinObserver (size_t maxAcceptedCount=std::numeric_limits< size_t >::max(), size_t maxTotalCount=std::numeric_limits< size_t >::max())
void setMaxAcceptedCount (size_t maxCount)
void setMaxTotalCount (size_t maxCount)
void setTruncateSum (bool value)
 Sets the truncate-sum flag to value.
void start (const size_t &n_totToBeVisited)
void stop ()
 Reset the low-pass filter when min-element stops.
bool visited (const Real &r)
template<LatticeType LA, EmbeddingType L>
void reject (const LatDef< LA, L > &lat)
void minUpdated (const Real &newMin)
 Updates the threshold of the low-pass filter with the new observed minimum value.
void setVerbosity (int verbose)
void setTotalDim (Dimension totalDim)
size_t maxAcceptedCount () const
size_t maxTotalCount () const
size_t acceptedCount () const
size_t rejectedCount () const
size_t totalCount () const
bool progress (const Real &merit) const
 Applies the low-pass filter if the truncate-sum flag is on.
bool progress (const RealVector &) const
 Does nothing.
const Functor::LowPass< Real > & lowPass () const

Detailed Description

template<LatticeType LR, EmbeddingType ET>
class LatBuilder::Task::Search< LR, ET >::MinObserver

Observer of the MinElement functor.

It allows for counting accepted/rejected elements, and for optionally truncating the sum over projections if, during its term-by-term evaluation, the partial sum reaches a value superior to the current minimum value. The default behavior is not to truncate the sum.

Member Function Documentation

◆ progress()

template<LatticeType LR, EmbeddingType ET>
bool LatBuilder::Task::Search< LR, ET >::MinObserver::progress ( const Real & merit) const
inline

Applies the low-pass filter if the truncate-sum flag is on.

The low-pass filter is bypassed for embedded lattices.

◆ setTruncateSum()

template<LatticeType LR, EmbeddingType ET>
void LatBuilder::Task::Search< LR, ET >::MinObserver::setTruncateSum ( bool value)
inline

Sets the truncate-sum flag to value.

Defaults to false.


The documentation for this class was generated from the following file:
  • include/latbuilder/Task/Search.h