Lattice Tester Online Documentation 0.1.0-861
Software Package For Testing The Uniformity Of Integral Lattices In The Real Space
|
Defines order-dependent weights. More...
#include <latticetester/WeightsOrderDependent.h>
Public Member Functions | |
WeightsOrderDependent (Weight defaultWeight=0.0) | |
Constructs order-dependent weights with default weight. | |
virtual | ~WeightsOrderDependent () |
Destructor. | |
virtual Weight | getWeight (const Coordinates &projection) const |
Returns the weight of the projection specified by projection . | |
virtual Weight | getWeightForOrder (Coordinates::size_type order) const |
Returns the weight associated to the given order . | |
virtual void | setWeightForOrder (Coordinates::size_type order, Weight weight) |
Sets the weight for the order specified by order . | |
virtual void | setDefaultWeight (Weight weight) |
Sets the default weight of all orders for which a weight has not been set explicitly set using setWeightForOrder(). | |
virtual Weight | getDefaultWeight () const |
virtual uint64_t | getSize () const |
![]() | |
virtual | ~Weights () |
Destructor. | |
virtual uint64_t | interlacingFactor () const |
Returns the interlacing factor of the weights. | |
Protected Member Functions | |
virtual void | format (std::ostream &os) const |
Static factory method; create a WeightsOrderDependent object by parsing XML data. | |
![]() |
Protected Attributes | |
Weight | m_defaultWeight |
std::vector< Weight > | m_weights |
Additional Inherited Members | |
![]() | |
std::ostream & | operator<< (std::ostream &os, const Weights &o) |
Identifies the type of weights, formats them and outputs them on os . | |
Defines order-dependent weights.
The weight of a projection depends only on the order (cardinality) of the projection.
|
explicit |
Constructs order-dependent weights with default weight.
defaultWeight | Default weight. |
|
inlinevirtual |
Destructor.
|
protectedvirtual |
Static factory method; create a WeightsOrderDependent
object by parsing XML data.
Identifies the type of weights, formats them and outputs them on os
.
Subclasses that implement Weights should identify themselves in the output.
Implements LatticeTester::Weights.
|
inlinevirtual |
|
inlinevirtual |
|
virtual |
Returns the weight of the projection specified by projection
.
Implements LatticeTester::Weights.
|
inlinevirtual |
Returns the weight associated to the given order
.
|
inlinevirtual |
Sets the default weight of all orders for which a weight has not been set explicitly set using setWeightForOrder().
|
virtual |
Sets the weight for the order specified by order
.
|
protected |
|
protected |