JSci.Demos.MonteCarlo
Class MonteCarlo

java.lang.Object
  extended by JSci.Demos.MonteCarlo.MonteCarlo
All Implemented Interfaces:
Mapping

public final class MonteCarlo
extends java.lang.Object
implements Mapping

Monte Carlo calculation of Helium ground state energy.

Version:
1.0
Author:
Mark Hale

Constructor Summary
MonteCarlo(int n)
          Constructor.
 
Method Summary
static void main(java.lang.String[] arg)
          Instantiate class.
 Complex map(Complex z)
          Not used, dummy implementation for Mapping interface.
 double map(double x)
          Update electron co-ordinates.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MonteCarlo

public MonteCarlo(int n)
Constructor.

Parameters:
n - number of iterations
Method Detail

main

public static void main(java.lang.String[] arg)
Instantiate class.


map

public double map(double x)
Update electron co-ordinates.

Specified by:
map in interface Mapping

map

public Complex map(Complex z)
Not used, dummy implementation for Mapping interface.