pisgah
Class StudentTGraphData

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

public class StudentTGraphData
extends java.lang.Object
implements PdfPlotable

Provides data for graphing the pdf of a Student t distribution


Field Summary
 
Fields inherited from interface pisgah.PdfPlotable
BOTH_TAILS, LEFT_TAIL, RIGHT_TAIL
 
Constructor Summary
StudentTGraphData(int n, float x1, float x2)
          constructs StudentTGraphData
StudentTGraphData(int n, float x1, float x2, boolean inverseSelected, int tailChoice)
          constructs StudentTGraphData
 
Method Summary
 float getHighX()
          Gets the lower bound for the viewport.
 java.awt.geom.Point2D.Float getHighXInterval()
          Get the x and y coordinates of the right end of the probability interval.
 float getHighY()
           
 float getLowX()
          Gets the lower bound for the viewport.
 java.awt.geom.Point2D.Float getLowXInterval()
          Get the x and y coordinates of the left end of the probability interval.
 float getLowY()
           
 java.awt.geom.Point2D.Float[] getPlotPoints()
          implements getPlotPoints in PdfPlotable
 int getTailChoice()
           
 java.lang.String getTitle()
           
 java.lang.String getXAxisLabel()
          Get the label for the horizontal axis
 boolean isInverseSelected()
           
 void reset()
           
 void setInverseSelected(boolean inverseSelected)
           
 void setTailChoice(int tailChoice)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StudentTGraphData

public StudentTGraphData(int n,
                         float x1,
                         float x2)
constructs StudentTGraphData

Parameters:
n - is the degrees of freedom

StudentTGraphData

public StudentTGraphData(int n,
                         float x1,
                         float x2,
                         boolean inverseSelected,
                         int tailChoice)
constructs StudentTGraphData

Parameters:
n - is the degrees of freedom
inverseSelected - sets the inverse mode
tailChoice - sets the tail choice in inverse mode
Method Detail

getPlotPoints

public java.awt.geom.Point2D.Float[] getPlotPoints()
implements getPlotPoints in PdfPlotable

Specified by:
getPlotPoints in interface PdfPlotable
Returns:
Point2DFloat[]

getLowX

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

Returns:
The lower bound, -5.0.

getHighX

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

Returns:
The lower bound, 5.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()
Get the x and y coordinates of the left end of the probability interval.

Specified by:
getLowXInterval in interface PdfPlotable
Returns:
The Point (x1,f(x1)).

getHighXInterval

public java.awt.geom.Point2D.Float getHighXInterval()
Get the x and y coordinates of the right end of the probability interval.

Specified by:
getHighXInterval in interface PdfPlotable
Returns:
The Point (x2,f(x2)).

getXAxisLabel

public java.lang.String getXAxisLabel()
Get the label for the horizontal axis

Specified by:
getXAxisLabel in interface PdfPlotable
Returns:
The label ("x")

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 inverseSelected)

getTailChoice

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

setTailChoice

public void setTailChoice(int tailChoice)