LatNet Builder Manual
2.0.1-11
Software Package for Constructing Highly Uniform Point Sets
|
Accumulator class. More...
#include <Accumulator.h>
Public Member Functions | |
Accumulator (Real initialValue, Real normType) | |
Constructor. More... | |
Accumulator (Accumulator &)=default | |
Default copy constructor. | |
Accumulator (Accumulator &&)=default | |
Default move constructor. | |
void | accumulate (Real weight, Real value, Real power) |
Accumulate a new merit value value with weight weight . More... | |
Real | tryAccumulate (Real weight, Real value, Real power) const |
Returns the value which would be held by the accumulator if a new merit value value with weight weight were accumulated. More... | |
void | set (Real value) |
Set the current merit value held by the accumulator to value . | |
Real | value () const |
Returns the current merit value held by the accumulator. | |
Accumulator class.
Used by figures of merit to aggregate partial merit values (dimension, projection-dependent, etc.).
Constructor.
initialValue | Initial value of the accumulator. |
normType | Norm type of the accumulator. A finite real corresponds to the q-norm whereas the infinite corresponds to the sup norm. |
Accumulate a new merit value value
with weight weight
.
The accumulator raises value
to power power
.
weight | Weight of the value . |
value | Value to accumulate. |
power | Power used when raising value . |
Returns the value which would be held by the accumulator if a new merit value value
with weight weight
were accumulated.
The accumulator raises value
to power power
.
weight | Weight of the value . |
value | Value to accumulate. |
power | Power used when raising value . |