Order-dependent weights.
More...
#include <latticetester/OrderDependentWeights.h>
Inherits LatticeTester::Weights.
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.
◆ OrderDependentWeights()
LatticeTester::OrderDependentWeights::OrderDependentWeights |
( |
Weight |
defaultWeight = 0.0 | ) |
|
|
explicit |
Constructs order-dependent weights with default weight.
- Parameters
-
defaultWeight | Default weight. |
◆ ~OrderDependentWeights()
virtual LatticeTester::OrderDependentWeights::~OrderDependentWeights |
( |
| ) |
|
|
inlinevirtual |
◆ format()
void LatticeTester::OrderDependentWeights::format |
( |
std::ostream & |
os | ) |
const |
|
protectedvirtual |
◆ getWeight()
Weight LatticeTester::OrderDependentWeights::getWeight |
( |
const Coordinates & |
projection | ) |
const |
|
virtual |
◆ getWeightForOrder()
virtual Weight LatticeTester::OrderDependentWeights::getWeightForOrder |
( |
Coordinates::size_type |
order | ) |
const |
|
inlinevirtual |
Returns the weight associated to the given order.
◆ setDefaultWeight()
virtual void LatticeTester::OrderDependentWeights::setDefaultWeight |
( |
Weight |
weight | ) |
|
|
inlinevirtual |
Sets the default weight of all orders for which a weight has not been set explicitly set using setWeightForOrder().
◆ setWeightForOrder()
void LatticeTester::OrderDependentWeights::setWeightForOrder |
( |
Coordinates::size_type |
order, |
|
|
Weight |
weight |
|
) |
| |
|
virtual |
Sets the weight for the order specified by order
.
The documentation for this class was generated from the following files:
- include/latticetester/OrderDependentWeights.h
- src/OrderDependentWeights.cc