|
LatNet Builder Manual 2.1.3-6
Software Package for Constructing Highly Uniform Point Sets
|
Projection-dependent weights. More...
#include <ProjectionDependentWeights.h>
Inherits LatticeTester::Weights.
Inherited by LatBuilder::Interlaced::IPDWeights< KERNEL >.
Public Member Functions | |
| ProjectionDependentWeights () | |
| Constructs projection-dependent weights. | |
| virtual | ~ProjectionDependentWeights () |
| Destructor. | |
| ProjectionDependentWeights (const ProjectionDependentWeights &) | |
| Copy constructor. | |
| virtual Weight | getWeight (const Coordinates &projection) const |
Returns the weight of the projection specified by projection. | |
| virtual unsigned int | getSize () const |
| virtual const WeightsMap & | getWeightsForLargestIndex (Coordinates::value_type largestIndex) const |
Returns a map of weights for all projections whose largest index is largestIndex. | |
| virtual void | setWeight (const Coordinates &projection, Weight weight) |
| Static factory method; create a ProjectionDependentWeights object by parsing XML data. | |
| Public Member Functions inherited from LatticeTester::Weights | |
| virtual | ~Weights () |
| Destructor. | |
| virtual unsigned int | interlacingFactor () const |
| Returns the interlacing factor of the weights. | |
Protected Types | |
| typedef std::map< Coordinates, Weight > | WeightsMap |
Protected Member Functions | |
| virtual void | format (std::ostream &os) const |
Identifies the type of weights, formats them and outputs them on os. | |
Protected Attributes | |
| std::vector< WeightsMap > | m_weights |
| Per-projection weights, regrouped by largest coordinate index. | |
Static Protected Attributes | |
| static const WeightsMap | m_emptyWeights |
| Used only to return an empty map. | |
Friends | |
| std::istream & | operator>> (std::istream &, ProjectionDependentWeights &) |
Related Symbols | |
(Note that these are not member symbols.) | |
| std::istream & | operator>> (std::istream &is, ProjectionDependentWeights &weights) |
Reads formatted projection-dependent weights into the object weights. | |
| Related Symbols inherited from LatticeTester::Weights | |
| typedef double | Weight |
| Scalar weight type. | |
| std::ostream & | operator<< (std::ostream &os, const Weights &o) |
Identifies the type of weights, formats them and outputs them on os. | |
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.
|
protectedvirtual |
Identifies the type of weights, formats them and outputs them on os.
Implements LatticeTester::Weights.
Reimplemented in LatBuilder::Interlaced::IPDWeights< KERNEL >.
References ProjectionDependentWeights().
|
virtual |
Returns the weight of the projection specified by projection.
Implements LatticeTester::Weights.
References m_weights.
|
virtual |
Static factory method; create a ProjectionDependentWeights object by parsing XML data.
Sets the weight of the projection specified by projection.
Reimplemented in LatBuilder::Interlaced::IPDWeights< KERNEL >.
|
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:
default to set the default weight for other projections.# character.:) can be replaced with => or ->.References ProjectionDependentWeights().