Lattice Tester Guide  1.0-9
Software Package For Testing The Uniformity Of Integral Lattices In The Real Space
LatticeTester::Weights Class Referenceabstract

Abstract class representing Weights for figures of merit. More...

#include <latticetester/Weights.h>

Inherited by LatticeTester::OrderDependentWeights, LatticeTester::PODWeights, LatticeTester::ProductWeights, LatticeTester::ProjectionDependentWeights, and LatticeTester::UniformWeights.

Public Member Functions

virtual ~Weights ()
 Destructor. More...
 
virtual Weight getWeight (const Coordinates &projection) const =0
 Returns the weight of the projection specified by projection. More...
 
virtual unsigned int interlacingFactor () const
 Returns the interlacing factor of the weights. More...
 

Protected Member Functions

virtual void format (std::ostream &os) const =0
 Identifies the type of weights, formats them and outputs them on os. More...
 

Related Functions

(Note that these are not member functions.)

typedef double Weight
 
std::ostream & operator<< (std::ostream &os, const Weights &o)
 

Detailed Description

Abstract class representing Weights for figures of merit.

Typically, if one wants to analyze a lattice, there are multiple figures of merit available. This class presents an interface to give weights to all those figures of merit so that a global figure of merit can be calculated as a weighted mean of many figures of merit.

This abstract class is the basis for different kinds of weights used to accentuate the importance of some projections when computing figures of merit for lattices or point sets. For more insight on what can be done with weights, look what the subclasses implement. These classes are not used directly by LatticeTester since LatticeTester does not implement calculations of figure of merit for different projections of a point set. For example usages, one should look at the LatNetBuilder and the LatMRG software.

Constructor & Destructor Documentation

◆ ~Weights()

virtual LatticeTester::Weights::~Weights ( )
inlinevirtual

Destructor.

Member Function Documentation

◆ format()

virtual void LatticeTester::Weights::format ( std::ostream &  os) const
protectedpure virtual

Identifies the type of weights, formats them and outputs them on os.

Remarks
Deriving classes should identify themselves in the output.

Implemented in LatticeTester::ProductWeights, LatticeTester::PODWeights, LatticeTester::ProjectionDependentWeights, LatticeTester::OrderDependentWeights, and LatticeTester::UniformWeights.

◆ getWeight()

virtual Weight LatticeTester::Weights::getWeight ( const Coordinates projection) const
pure virtual

◆ interlacingFactor()

virtual unsigned int LatticeTester::Weights::interlacingFactor ( ) const
inlinevirtual

Returns the interlacing factor of the weights.

This is used to parametrize figures of merit for interlaced digital nets.

Friends And Related Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
const Weights o 
)
related

Identifies the type of weights, formats them and outputs them on os.

◆ Weight

typedef double Weight
related

Scalar weight type.

Note
We could have used Weight, but it might be wise to leave this typedef in case we decide to use std::int64_t Weight at some point.

The documentation for this class was generated from the following file: