View Javadoc

    1   package baseCode.math.distribution;
    2
    3   /***
    4    * An interface that describes objects that can produce probabilities according to some distribution.
    5    * <hr>
    6    * <p>
    7    * Copyright (c) 2004 Columbia University
    8    *
    9    * @author pavlidis
    10   * @version $Id: ProbabilityComputer.java,v 1.1 2004/12/31 01:14:48 pavlidis Exp $
    11   */
    12  public interface ProbabilityComputer {
    13
    14     /***
    15      * Return the probability associated with a certain value.The upper tail of the associated distribution is returned.
    16      *
    17      * @param value
    18      * @return
    19      */
    20     public double probability( double value );
    21
    22     /***
    23      * Return the probability associated with a certain value, with choice of tail.
    24      * @param value
    25      * @param upperTail
    26      * @return
    27      */
    28     public double probability( double value, boolean upperTail );
    29
    30  }