Lattice Tester Guide
1.0-9
Software Package For Testing The Uniformity Of Integral Lattices In The Real Space
|
Projection-dependent weights. More...
#include <latticetester/ProjectionDependentWeights.h>
Inherits LatticeTester::Weights.
Public Member Functions | |
ProjectionDependentWeights () | |
Constructs projection-dependent weights. More... | |
virtual | ~ProjectionDependentWeights () |
Destructor. More... | |
ProjectionDependentWeights (const ProjectionDependentWeights &) | |
Copy constructor. More... | |
virtual Weight | getWeight (const Coordinates &projection) const |
Returns the weight of the projection specified by projection . More... | |
virtual const WeightsMap & | getWeightsForLargestIndex (Coordinates::value_type largestIndex) const |
Returns a map of weights for all projections whose largest index is largestIndex . More... | |
virtual void | setWeight (const Coordinates &projection, Weight weight) |
Static factory method; create a ProjectionDependentWeights object by parsing XML data. More... | |
Public Member Functions inherited from LatticeTester::Weights | |
virtual | ~Weights () |
Destructor. More... | |
virtual unsigned int | interlacingFactor () const |
Returns the interlacing factor of the weights. More... | |
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 | |
std::vector< WeightsMap > | m_weights |
Per-projection weights, regrouped by largest coordinate index. More... | |
Static Protected Attributes | |
static const WeightsMap | m_emptyWeights |
Used only to return an empty map. More... | |
Related Functions | |
(Note that these are not member functions.) | |
std::istream & | operator>> (std::istream &is, ProjectionDependentWeights &weights) |
Related Functions inherited from LatticeTester::Weights | |
typedef double | Weight |
std::ostream & | operator<< (std::ostream &os, const Weights &o) |
Projection-dependent weights.
The weight for a given projection can be set with setWeight().
Internally, the weights are regrouped by largest coordinate index in different std::map objects. This is useful for use with CBC.
LatticeTester::ProjectionDependentWeights::ProjectionDependentWeights | ( | ) |
Constructs projection-dependent weights.
|
inlinevirtual |
Destructor.
LatticeTester::ProjectionDependentWeights::ProjectionDependentWeights | ( | const ProjectionDependentWeights & | o | ) |
Copy constructor.
|
protectedvirtual |
Identifies the type of weights, formats them and outputs them on os
.
Implements LatticeTester::Weights.
|
virtual |
Returns the weight of the projection specified by projection
.
Implements LatticeTester::Weights.
|
virtual |
Returns a map of weights for all projections whose largest index is largestIndex
.
|
virtual |
Static factory method; create a ProjectionDependentWeights object by parsing XML data.
Sets the weight of the projection specified by projection
.
|
related |
Reads formatted projection-dependent weights into the object weights
.
The input should be a sequence of projection-to-weight mappings, of the format:
where <weightn>
is the weight (a floating point number) associated to the projection-match <matchn>
, and <matchn>
is one of:
order m
to implicitly set the weights of projections of order m
;default
to set the default weight for other projections.#
character.
:) can be replaced with =>
or ->
.
|
staticprotected |
Used only to return an empty map.
|
protected |
Per-projection weights, regrouped by largest coordinate index.