1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77
|
// Copyright (C) 1995 The New York Group Theory Cooperative
// See magnus/doc/COPYRIGHT for the full notice.
//
// Contents: Declarations of classes RandomAutomorphism
//
// Principal Author: Sergei Lioutikov
//
// Status: in progress
//
// Revision History:
//
// Notes:
//
// * generates random automorphisms for a free group.
// * copy constructor does logical copy.
// * this is an adoptation of the algorithm written by Roger Needham.
//
#ifndef _RANDOMAUTOMORPHISM_H_
#define _RANDOMAUTOMORPHISM_H_
#include "RandomNumbers.h"
#include "FreeGroup.h"
#include "Map.h"
//---------------------------------------------------------------------------//
//------------------------- RandomAutomorphism ------------------------------//
//---------------------------------------------------------------------------//
class RandomAutomorphism
{
public:
/////////////////////////////////////////////////////////////////////////
// //
// Constructors: //
// //
/////////////////////////////////////////////////////////////////////////
RandomAutomorphism( const FreeGroup& F, int seed );
// Giving the same `seed' you obtain the same sequence of automorphisms.
~RandomAutomorphism( );
/////////////////////////////////////////////////////////////////////////
// //
// Accessors: //
// //
/////////////////////////////////////////////////////////////////////////
VectorOf<Word> getGeneratingVector( int avgNumGens );
// `avgNumGens' gives the average number of Whitehead automorphisms to apply.
Map getAutomorphism( int avgnumGens );
// similar to `getGeneratingVector'.
private:
/////////////////////////////////////////////////////////////////////////
// //
// Data Members: //
// //
/////////////////////////////////////////////////////////////////////////
FreeGroup theGroup;
int numberOfGroupGens;
NormalRandom numGensPicker;
UniformRandom typeGenPicker;
};
#endif
|