org.opensourcephysics.sip.ch16
Class QMWalk

java.lang.Object
  extended by org.opensourcephysics.sip.ch16.QMWalk

public class QMWalk
extends java.lang.Object

A random walk quantum Monte Carlo model.


Constructor Summary
QMWalk()
           
 
Method Summary
 void initialize()
          Initializes a random walk quantum Monte Carlo model with the given number of walkers and step size.
 double potential(double x)
          Evaluates the potential energy for a simple harmonic oscillator.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QMWalk

public QMWalk()
Method Detail

initialize

public void initialize()
Initializes a random walk quantum Monte Carlo model with the given number of walkers and step size.


potential

public double potential(double x)
Evaluates the potential energy for a simple harmonic oscillator. Change this function value to model other potentials.

Parameters:
x -
Returns:
the potential