|
Lattice Builder Manual
Software Package for Constructing Rank-1 Lattices
|
Order-dependent weights. More...
#include <OrderDependentWeights.h>
Inherits LatCommon::Weights.
Public Member Functions | |
| OrderDependentWeights (Weight defaultWeight=0.0) | |
| Constructs order-dependent weights with default weight. More... | |
| virtual | ~OrderDependentWeights () |
| 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(). | |
Public Member Functions inherited from LatCommon::Weights | |
| virtual | ~Weights () |
| Destructor. | |
Protected Member Functions | |
| virtual void | format (std::ostream &os) const |
Identifies the type of weights, formats them and outputs them on os. More... | |
Protected Attributes | |
| Weight | m_defaultWeight |
| std::vector< Weight > | m_weights |
Additional Inherited Members | |
Related Functions inherited from LatCommon::Weights | |
| std::ostream & | operator<< (std::ostream &os, const Weights &o) |
Order-dependent weights.
This class implements order dependent weights. The weight of a projection depends only on the order of the projection, i.e. the dimension of the projection.
|
explicit |
Constructs order-dependent weights with default weight.
| defaultWeight | Default weight. |
|
protectedvirtual |
Identifies the type of weights, formats them and outputs them on os.
Implements LatCommon::Weights.