Release Planner v1.0

rp.estimate
Class Estimate

java.lang.Object
  |
  +--rp.estimate.Estimate
Direct Known Subclasses:
DeterministicEstimate, NormalEstimate

public abstract class Estimate
extends java.lang.Object

The baseclass for estimates of all sorts

Version:
$Revision: 1.2 $, $Date: 2001/05/23 18:42:14 $

Constructor Summary
Estimate()
           
 
Method Summary
 double getCI(double ci)
          Returns a confidence interval on this estimate.
abstract  double getMean()
          Returns the mean value of this estimate.
 double getSdev()
          Returns the standard deviation of this estimate.
 double getVariance()
          Returns the variance of this estimate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Estimate

public Estimate()
Method Detail

getMean

public abstract double getMean()
Returns the mean value of this estimate.

Returns:
the mean value of this estimate

getVariance

public double getVariance()
Returns the variance of this estimate.

Returns:
the variance of this estimate

getSdev

public double getSdev()
Returns the standard deviation of this estimate.

Returns:
the standard deviation of this estimate

getCI

public double getCI(double ci)
             throws UndefinedException
Returns a confidence interval on this estimate. Returns the value x such that the probability that for a randomly-sampled y from this estiamte, Prob[x <= y] = ci;

Parameters:
ci - a probability 0 <= ci <= 1.
Returns:
the value at the given confidence.
Throws:
UndefinedException - ci not defined for certain types of distributions

Release Planner v1.0