RandomPairGenerator Class Reference

Implements a class for generating pseudo-random pairs of words. More...

#include <PairDistanceTest.h>

Inheritance diagram for RandomPairGenerator:
PairGenerator

List of all members.

Public Member Functions

 RandomPairGenerator (int N, int len)
 Constructor.
pair< Word, WordgetTruePair ()
 Returns a pair of pseudo-random, independently generated words.
pair< Word, WordgetFalsePair ()
 Returns a pair of correlated words.

Private Attributes

int nGens
int Len

Detailed Description

Implements a class for generating pseudo-random pairs of words.

Definition at line 48 of file PairDistanceTest.h.


Constructor & Destructor Documentation

RandomPairGenerator::RandomPairGenerator ( int  N,
int  len 
) [inline]

Constructor.

Parameters:
N - number of generators
len - the length of each word

Definition at line 56 of file PairDistanceTest.h.


Member Function Documentation

pair<Word,Word> RandomPairGenerator::getFalsePair (  )  [inline, virtual]

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().

pair<Word,Word> RandomPairGenerator::getTruePair (  )  [inline, virtual]

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().


Member Data Documentation

int RandomPairGenerator::Len [private]

Definition at line 85 of file PairDistanceTest.h.

Referenced by getFalsePair(), and getTruePair().

Definition at line 84 of file PairDistanceTest.h.

Referenced by getFalsePair(), and getTruePair().


The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines

Generated on Mon Sep 26 18:43:50 2011 for CRyptography And Groups (CRAG) by  doxygen 1.6.1