Release Planner v1.0

rp.estimate
Class DeterministicEstimate

java.lang.Object
  |
  +--rp.estimate.Estimate
        |
        +--rp.estimate.DeterministicEstimate

public class DeterministicEstimate
extends Estimate

An estimate that is known exactly with no uncertainty.

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

Constructor Summary
DeterministicEstimate(double mean)
          Constructs a DeterministicEstimate with the given mean.
 
Method Summary
 double getCI(double ci)
          Returns a confidence interval on this estimate.
 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.
 void setMean(double mean)
          Sets the mean value of this estimate.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DeterministicEstimate

public DeterministicEstimate(double mean)
Constructs a DeterministicEstimate with the given mean.

Parameters:
mean - the initial mean value for this estimate
Method Detail

setMean

public void setMean(double mean)
Sets the mean value of this estimate.

Parameters:
mean - the new mean value

getMean

public double getMean()
Description copied from class: Estimate
Returns the mean value of this estimate.

Specified by:
getMean in class Estimate
Returns:
the mean value of this estimate

getVariance

public double getVariance()
Description copied from class: Estimate
Returns the variance of this estimate.

Overrides:
getVariance in class Estimate
Returns:
the variance of this estimate

getSdev

public double getSdev()
Description copied from class: Estimate
Returns the standard deviation of this estimate.

Overrides:
getSdev in class Estimate
Returns:
the standard deviation of this estimate

getCI

public double getCI(double ci)
             throws UndefinedException
Description copied from class: Estimate
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;

Overrides:
getCI in class Estimate
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