pisgah
Class GammaGraphData

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

public class GammaGraphData
extends java.lang.Object
implements PdfPlotable

Provides data for graphing the pdf of a Gamma distribution with pdf c*Math.exp((alpha-1)*Math.log(x))*Math.exp(-1*x/beta)


Field Summary
 
Fields inherited from interface pisgah.PdfPlotable
BOTH_TAILS, LEFT_TAIL, RIGHT_TAIL
 
Constructor Summary
GammaGraphData()
           
GammaGraphData(float aAlpha, float aBeta, float aX0, float aX1)
          constructs GammaGraphData
GammaGraphData(float aAlpha, float aBeta, float aX0, float aX1, boolean aInverseSelected, int aTailChoice)
          constructs GammaGraphData
 
Method Summary
 float getHighX()
          Gets the upper bound for the viewport.
 java.awt.geom.Point2D.Float getHighXInterval()
           
 float getHighY()
           
 float getLowX()
          Gets the lower bound for the distribution.
 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

GammaGraphData

public GammaGraphData()

GammaGraphData

public GammaGraphData(float aAlpha,
                      float aBeta,
                      float aX0,
                      float aX1)
constructs GammaGraphData

Parameters:
aAlpha - is alpha parameter (x^(a-1): a > 0)
aBeta - is the beta parameter ( e^(-x/b): b> 0)
aX0 - is the left end of the probability interval
aX1 - is the right end of the probability interval

GammaGraphData

public GammaGraphData(float aAlpha,
                      float aBeta,
                      float aX0,
                      float aX1,
                      boolean aInverseSelected,
                      int aTailChoice)
constructs GammaGraphData

Parameters:
aAlpha - is alpha parameter (x^(a-1): a > 0)
aBeta - is the beta parameter ( e^(-x/b): b> 0)
aX0 - is the left end of the probability interval
aX1 - is the right end of the probability interval
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 viewport.

Returns:
The upper bound, depends on parameters.

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)