org.apache.commons.math.stat.univariate
Interface UnivariateStatistic

All Known Subinterfaces:
StorelessUnivariateStatistic
All Known Implementing Classes:
AbstractStorelessUnivariateStatistic, AbstractUnivariateStatistic

public interface UnivariateStatistic

UnivariateStatistic interface provides methods to evaluate double[] based content using an implemented statistical approach. The interface provides two "stateless" simple methods to calculate a statistic from a double[] based parameter.

Version:
$Revision: 1.10 $ $Date: 2003/11/14 22:22:21 $

Method Summary
 double evaluate(double[] values)
          Evaluates the double[] returning the result of the evaluation.
 double evaluate(double[] values, int begin, int length)
          Evaluates part of a double[] returning the result of the evaluation.
 

Method Detail

evaluate

public double evaluate(double[] values)
Evaluates the double[] returning the result of the evaluation.

Parameters:
values - Is a double[] containing the values
Returns:
the result of the evaluation or Double.NaN if the array is empty

evaluate

public double evaluate(double[] values,
                       int begin,
                       int length)
Evaluates part of a double[] returning the result of the evaluation.

Parameters:
values - Is a double[] containing the values
begin - processing at this point in the array
length - processing at this point in the array
Returns:
the result of the evaluation or Double.NaN if the array is empty


Copyright © 2003-2004 Apache Software Foundation. All Rights Reserved.