pisgah
Class BetaGraphData

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

public class BetaGraphData
extends java.lang.Object
implements PdfPlotable

Provides data for graphing the pdf of a beta distribution


Field Summary
 
Fields inherited from interface pisgah.PdfPlotable
BOTH_TAILS, LEFT_TAIL, RIGHT_TAIL
 
Constructor Summary
BetaGraphData(float aAlpha, float aBeta, float aX0, float aX1)
          constructs BetaGraphData for the distribution proportional to x^a(1-x)^b
BetaGraphData(float aA, float aB, float ax0, float ax1, boolean aInverseSelected, int aTailChoice)
          constructs BetaGraphData for the distribution proportional to x^a(1-x)^b
 
Method Summary
 float getHighX()
          Gets the upper bound for the distribution.
 java.awt.geom.Point2D.Float getHighXInterval()
           
 float getHighY()
           
 float getLowX()
          Gets the lower bound for the distribution.
 java.awt.geom.Point2D.Float getLowXInterval()
          Gets the lower bound for the probability interval
 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

BetaGraphData

public BetaGraphData(float aAlpha,
                     float aBeta,
                     float aX0,
                     float aX1)
constructs BetaGraphData for the distribution proportional to x^a(1-x)^b

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

BetaGraphData

public BetaGraphData(float aA,
                     float aB,
                     float ax0,
                     float ax1,
                     boolean aInverseSelected,
                     int aTailChoice)
constructs BetaGraphData for the distribution proportional to x^a(1-x)^b

Parameters:
aInverseSelected - sets the inverse mode
aTailChoice - sets the tailChoice in 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 distribution.

Returns:
The lower bound, 0.0

getHighX

public float getHighX()
Gets the upper bound for the distribution.

Returns:
The upper bound, 1.0.

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()
Gets the lower bound for the probability interval

Specified by:
getLowXInterval in interface PdfPlotable
Returns:
The lower bound x0

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)