Class CCApplet.DensityFunction

java.lang.Object
  |
  +--CCApplet.DensityFunction
Enclosing class:
CCApplet

class CCApplet.DensityFunction
extends java.lang.Object
implements Function

Provides a simple representation of the density function. At present, this function does not use the correct units; it is just for show, and is not depended upon in any calculations.


Field Summary
protected  double gapSize
           
protected  double multiplier
           
protected  double ratio
           
 
Constructor Summary
CCApplet.DensityFunction(double gapSize)
           
 
Method Summary
 double evaluate(double x)
           
 double getGapSize()
           
 double getRatio()
           
 void setGapSize(double d)
           
 void setRatio(double d)
           
 
Methods inherited from class java.lang.Object
, clone, equals, finalize, getClass, hashCode, notify, notifyAll, registerNatives, toString, wait, wait, wait
 

Field Detail

ratio

protected double ratio

multiplier

protected double multiplier

gapSize

protected double gapSize
Constructor Detail

CCApplet.DensityFunction

public CCApplet.DensityFunction(double gapSize)
Method Detail

evaluate

public double evaluate(double x)
Specified by:
evaluate in interface Function

getGapSize

public double getGapSize()

setGapSize

public void setGapSize(double d)

getRatio

public double getRatio()

setRatio

public void setRatio(double d)