pisgah
Class NegativeBinomialGraphData

java.lang.Object
  |
  +--pisgah.NegativeBinomialGraphData
All Implemented Interfaces:
PfPlotable

public class NegativeBinomialGraphData
extends java.lang.Object
implements PfPlotable

Provides data for graphing the pf of a negative binomial distribution


Constructor Summary
NegativeBinomialGraphData(int aR, double aP, int aI0, int aI1)
          constructs NegativeBinomialGraphData
 
Method Summary
 int[] getBinLabels()
          Gets the integer labels for the bins.
 int getHighX()
          Gets the upper bound (inclusive) for the viewport.
 int getHighXInterval()
          Gets the lower bound (inclusive) for the probability interval
 int getLowX()
          Gets the lower bound (inclusive) for the distribution.
 int getLowXInterval()
          Gets the lower bound (inclusive) for the probability interval
 float getMaxProbability()
          Gets the maximum probability for scaling
 float[] getProbability()
          Gets the probability of each value
 java.lang.String getTitleString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NegativeBinomialGraphData

public NegativeBinomialGraphData(int aR,
                                 double aP,
                                 int aI0,
                                 int aI1)
constructs NegativeBinomialGraphData

Parameters:
aR - is the integer parameter of the distribution (number of successes)
aP - is the probability of a success
aI0 - is the left end of the probability interval
aI1 - is the right end of the probability interval
Method Detail

getBinLabels

public int[] getBinLabels()
Gets the integer labels for the bins.

Specified by:
getBinLabels in interface PfPlotable
Returns:
The integer labels

getProbability

public float[] getProbability()
Gets the probability of each value

Specified by:
getProbability in interface PfPlotable
Returns:
The array of bin probabilities

getMaxProbability

public float getMaxProbability()
Gets the maximum probability for scaling

Specified by:
getMaxProbability in interface PfPlotable
Returns:
The maximum probability

getLowX

public int getLowX()
Gets the lower bound (inclusive) for the distribution.

Specified by:
getLowX in interface PfPlotable
Returns:
The lower bound, r.

getHighX

public int getHighX()
Gets the upper bound (inclusive) for the viewport.

Specified by:
getHighX in interface PfPlotable
Returns:
The upper bound, depends on parameter r.

getLowXInterval

public int getLowXInterval()
Gets the lower bound (inclusive) for the probability interval

Specified by:
getLowXInterval in interface PfPlotable
Returns:
The lower bound x1

getHighXInterval

public int getHighXInterval()
Description copied from interface: PfPlotable
Gets the lower bound (inclusive) for the probability interval

Specified by:
getHighXInterval in interface PfPlotable
Returns:
The upper bound x2

getTitleString

public java.lang.String getTitleString()
Specified by:
getTitleString in interface PfPlotable