Class edu.cornell.lassp.mck10.Hysteresis.RandField
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Class edu.cornell.lassp.mck10.Hysteresis.RandField

java.lang.Object
   |
   +----edu.cornell.lassp.mck10.Hysteresis.RandField

public class RandField
extends Object
RandField is an abstract class for generating random fields. The getField method is left abstract. In subclasses, this method should be defined to produce random fields in different distributions, such as Gaussian or Lorenzian. This abstract class allows us to change distributions by just allocating our random number generator to be a different subclass, instead of having to use different function calls for different distributions.

Source Code is available.

Author:
Matt Kuntz (e-mail: mck10@cornell.edu)

Method Index

 o getField(double)
getField(sd) returns a random field from some distribution of random numbers which has a width sd.

Methods

 o getField
  public abstract double getField(double sd)
getField(sd) returns a random field from some distribution of random numbers which has a width sd. It is left abstract, so that RandField can be subclassed for different distributions of random numbers.
Parameters:
sd - The width of the random number distribution.

All Packages  Class Hierarchy  This Package  Previous  Next  Index