Implements a class for generating pseudo-random pairs of words. More...
#include <PairDistanceTest.h>
Public Member Functions | |
RandomPairGenerator (int N, int len) | |
Constructor. | |
pair< Word, Word > | getTruePair () |
Returns a pair of pseudo-random, independently generated words. | |
pair< Word, Word > | getFalsePair () |
Returns a pair of correlated words. | |
Private Attributes | |
int | nGens |
int | Len |
Implements a class for generating pseudo-random pairs of words.
Definition at line 48 of file PairDistanceTest.h.
RandomPairGenerator::RandomPairGenerator | ( | int | N, | |
int | len | |||
) | [inline] |
Constructor.
N | - number of generators | |
len | - the length of each word |
Definition at line 56 of file PairDistanceTest.h.
Returns a pair of correlated words.
There are many ways to create correlated words. This is just for testing. First word w1
is generated randomly and the second w2
= w1. Thereofre they are equal.
Implements PairGenerator.
Definition at line 75 of file PairDistanceTest.h.
References Len, nGens, and Word::randomWord().
Returns a pair of pseudo-random, independently generated words.
Implements PairGenerator.
Definition at line 61 of file PairDistanceTest.h.
References Len, nGens, and Word::randomWord().
int RandomPairGenerator::Len [private] |
Definition at line 85 of file PairDistanceTest.h.
Referenced by getFalsePair(), and getTruePair().
int RandomPairGenerator::nGens [private] |
Definition at line 84 of file PairDistanceTest.h.
Referenced by getFalsePair(), and getTruePair().