|
LatNet Builder Manual 2.1.3-6
Software Package for Constructing Highly Uniform Point Sets
|
Accumulator class. More...
#include <Accumulator.h>
Public Member Functions | |
| Accumulator (Real initialValue, Real normType) | |
| Constructor. | |
| 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. | |
| 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. | |
| 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. |
Referenced by Accumulator(), and Accumulator().
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. |
References 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. |
References value().