Package ffx.algorithms.mc
Class CoordShakeMove
java.lang.Object
ffx.algorithms.mc.CoordShakeMove
- All Implemented Interfaces:
MCMove
The CoordShakeMove class implements a simplistic atomic coordinate shake. At present, simply adds
a random number from a normal distribution to each Cartesian coordinate; in the future, will use
a move in polar coordinates.
- Since:
- 1.0
- Author:
- Michael J. Schnieders, Jacob M. Litman
-
Constructor Summary
ConstructorsConstructorDescriptionCoordShakeMove(Atom[] atoms) Constructor for CoordShakeMove.CoordShakeMove(MolecularAssembly assembly) Constructor for CoordShakeMove. -
Method Summary
-
Constructor Details
-
CoordShakeMove
Constructor for CoordShakeMove.- Parameters:
assembly- aMolecularAssemblyobject.
-
CoordShakeMove
Constructor for CoordShakeMove.- Parameters:
atoms- an array ofAtomobjects.
-
-
Method Details
-
move
public void move()Performs the move associated with this MCMove. -
revertMove
public void revertMove()Reverts the last applied move() call. Returns the same energy change as described above (with the same sign).- Specified by:
revertMovein interfaceMCMove
-
setAtoms
Setter for the fieldatoms.- Parameters:
atoms- an array ofAtomobjects.
-
setSigma
public void setSigma(double sigma) Setter for the fieldsigma.- Parameters:
sigma- a double.
-
toString
-