pisgah
Class NormalGraphData

java.lang.Object
  |
  +--pisgah.NormalGraphData
All Implemented Interfaces:
PdfPlotable

public class NormalGraphData
extends java.lang.Object
implements PdfPlotable

This class graphs a normal curve and shows the area under the curve specified


Field Summary
 
Fields inherited from interface pisgah.PdfPlotable
BOTH_TAILS, LEFT_TAIL, RIGHT_TAIL
 
Constructor Summary
NormalGraphData()
          constructs standard mu=0 sigma = 1NormalGraphData
NormalGraphData(float aMu, float aSigma, float aX0, float aX1)
          constructs NormalGraphData
NormalGraphData(float aMu, float aSigma, float ax0, float ax1, boolean aInverseSelected, int aTailChoice)
          constructs NormalGraphData
 
Method Summary
 float getHighX()
          Gets the lower bound for the viewport.
 java.awt.geom.Point2D.Float getHighXInterval()
           
 float getHighY()
           
 float getLowX()
          Gets the lower bound for the viewport.
 java.awt.geom.Point2D.Float getLowXInterval()
           
 float getLowY()
           
 java.awt.geom.Point2D.Float[] getPlotPoints()
           
 int getTailChoice()
           
 java.lang.String getTitle()
           
 java.lang.String getXAxisLabel()
           
 boolean isInverseSelected()
           
 void reset()
           
 void setInverseSelected(boolean aInverseSelected)
           
 void setTailChoice(int aTailChoice)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NormalGraphData

public NormalGraphData()
constructs standard mu=0 sigma = 1NormalGraphData


NormalGraphData

public NormalGraphData(float aMu,
                       float aSigma,
                       float aX0,
                       float aX1)
constructs NormalGraphData

Parameters:
aX0 - is the left end of the probability interval
aX1 - is the right end of the probability interval

NormalGraphData

public NormalGraphData(float aMu,
                       float aSigma,
                       float ax0,
                       float ax1,
                       boolean aInverseSelected,
                       int aTailChoice)
constructs NormalGraphData

Parameters:
aInverseSelected - sets the inverse mode
aTailChoice - sets the tail choice for inverse mode
Method Detail

getPlotPoints

public java.awt.geom.Point2D.Float[] getPlotPoints()
Specified by:
getPlotPoints in interface PdfPlotable

getLowX

public float getLowX()
Gets the lower bound for the viewport.

Returns:
The lower bound, mu-4*sigma

getHighX

public float getHighX()
Gets the lower bound for the viewport.

Returns:
The upper bound, mu+4*sigma

getLowY

public float getLowY()
Specified by:
getLowY in interface PdfPlotable

getHighY

public float getHighY()
Specified by:
getHighY in interface PdfPlotable

getLowXInterval

public java.awt.geom.Point2D.Float getLowXInterval()
Specified by:
getLowXInterval in interface PdfPlotable

getHighXInterval

public java.awt.geom.Point2D.Float getHighXInterval()
Specified by:
getHighXInterval in interface PdfPlotable

getXAxisLabel

public java.lang.String getXAxisLabel()
Specified by:
getXAxisLabel in interface PdfPlotable

getTitle

public java.lang.String getTitle()
Specified by:
getTitle in interface PdfPlotable

reset

public void reset()
Specified by:
reset in interface PdfPlotable

isInverseSelected

public boolean isInverseSelected()
Specified by:
isInverseSelected in interface PdfPlotable

setInverseSelected

public void setInverseSelected(boolean aInverseSelected)

getTailChoice

public int getTailChoice()
Specified by:
getTailChoice in interface PdfPlotable

setTailChoice

public void setTailChoice(int aTailChoice)