SimpleFloatMove Class Reference
[annealing]

Change a single float value. More...

Inheritance diagram for SimpleFloatMove:

BasicMove

List of all members.

Public Member Functions

 SimpleFloatMove (float *node, float step_size=1e-6, float STEP_CHANGE=0.01)
virtual ~SimpleFloatMove ()
void move ()
void reject ()
void accept ()

Public Attributes

float * node
float old_value


Detailed Description

Change a single float value.

Change the float entry of anneal.nodes[addr] by a random number within (-step_size, +step_size).


Constructor & Destructor Documentation

SimpleFloatMove::SimpleFloatMove ( float *  node,
float  step_size = 1e-6,
float  STEP_CHANGE = 0.01 
) [inline]

node - address of the node in anneal.

virtual SimpleFloatMove::~SimpleFloatMove (  )  [inline, virtual]

Virtual destructor


Member Function Documentation

void SimpleFloatMove::move (  )  [inline, virtual]

Perform a simple move. Change the value of a node.

Reimplemented from BasicMove.

void SimpleFloatMove::reject (  )  [inline, virtual]

Reject a move and reset to old value.

Reimplemented from BasicMove.

References BasicMove::reject().

void SimpleFloatMove::accept (  )  [inline, virtual]

Accept move and backup new value.

Reimplemented from BasicMove.

References BasicMove::accept().


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

Generated on Mon Feb 8 17:22:36 2010 for libbiarc by  doxygen 1.5.6