LatMRG Guide
1.0
A software package to test and search for new linear congruential random number generators
|
This class stores a certain number of FigureOfMerit
objects.
More...
#include <latmrg/FigureOfMerit.h>
Public Member Functions | |
MeritList (unsigned long maxLength, bool best) | |
Creates a MeritList that will hold at most maxLength FigureOfMerit . More... | |
void | add (FigureOfMerit< Lat > test) |
Adds test in m_tests if there is space left or if test as a higher (lower) merit. More... | |
std::list< FigureOfMerit< Lat > > & | getList () |
Dbl | getMerit () |
unsigned long | getSize () |
Private Types | |
typedef Lat::Float | Dbl |
Private Member Functions | |
void | posInsert (FigureOfMerit< Lat > &test) |
Finds the right position in the vector and inserts the new test. More... | |
Private Attributes | |
bool | m_best |
Indicates wether or not this object keeps best or worst lattices. More... | |
unsigned long | m_max |
The maximal number of tests this object will store. More... | |
Dbl | m_merit |
The minimum merit stored in this object. More... | |
std::list< FigureOfMerit< Lat > > | m_tests |
The tests stored in this object. More... | |
This class stores a certain number of FigureOfMerit
objects.
New elements are only added if the list is not full or if they have a better merit than what is on the list.
|
private |
|
inline |
Creates a MeritList
that will hold at most maxLength
FigureOfMerit
.
|
inline |
Adds test
in m_tests
if there is space left or if test
as a higher (lower) merit.
|
inline |
|
inline |
|
inline |
|
inlineprivate |
Finds the right position in the vector and inserts the new test.
|
private |
Indicates wether or not this object keeps best or worst lattices.
|
private |
The maximal number of tests this object will store.
|
private |
The minimum merit stored in this object.
|
private |
The tests stored in this object.