LatNet Builder Manual  2.0.1-11
Software Package for Constructing Highly Uniform Point Sets
NetBuilder::FigureOfMerit::CombinedFigureOfMerit Class Reference

Aggregation of figures of merit computed in a specific order. More...

#include <CombinedFigureOfMerit.h>

Inherits NetBuilder::FigureOfMerit::CBCFigureOfMerit.

Public Member Functions

 CombinedFigureOfMerit (Real normType, std::vector< std::unique_ptr< CBCFigureOfMerit >> figures, std::vector< Real > weights)
 Constructor. More...
 
Real normType () const
 Returns the norm type of the figure.
 
virtual Accumulator accumulator (Real initialValue) const override
 Creates a new accumulator. More...
 
std::vector< Realweights () const
 Returns the vector of weights.
 
unsigned int size () const
 Returns the number of figures.
 
CBCFigureOfMeritpointerToFigure (unsigned int num) const
 
Returns a pointer to the figure in position num.
 
virtual std::unique_ptr< CBCFigureOfMeritEvaluatorevaluator () override
 Returns a std::unique_ptr to an evaluator for the figure of merit.
 
Real expNorm () const
 Returns the exponent to use when accumulating merits.
 
virtual std::string format () const override
 Output information about the figure of merit.
 
- Public Member Functions inherited from NetBuilder::FigureOfMerit::CBCFigureOfMerit
virtual ~CBCFigureOfMerit ()=default
 Virtual default destructor.
 
- Public Member Functions inherited from NetBuilder::FigureOfMerit::FigureOfMerit
virtual ~FigureOfMerit ()=default
 Virtual default destructor.
 
std::unique_ptr< FigureOfMeritEvaluatorevaluator ()
 Returns a std::unique_ptr to an evaluator for the figure of merit.
 

Detailed Description

Aggregation of figures of merit computed in a specific order.

Constructor & Destructor Documentation

◆ CombinedFigureOfMerit()

NetBuilder::FigureOfMerit::CombinedFigureOfMerit::CombinedFigureOfMerit ( Real  normType,
std::vector< std::unique_ptr< CBCFigureOfMerit >>  figures,
std::vector< Real weights 
)
inline

Constructor.

Parameters
normTypeNorm type use in the aggregation of merits
figuresVector of figures of merit
weightsVector of weights

Member Function Documentation

◆ accumulator()

virtual Accumulator NetBuilder::FigureOfMerit::CombinedFigureOfMerit::accumulator ( Real  initialValue) const
inlineoverridevirtual

Creates a new accumulator.

Parameters
initialValueInitial accumulator value.

Implements NetBuilder::FigureOfMerit::CBCFigureOfMerit.


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