org.simulator.math
Class MeanFunction

java.lang.Object
  extended by org.simulator.math.MeanFunction
All Implemented Interfaces:
Serializable
Direct Known Subclasses:
ArithmeticMean, DistanceSum

public abstract class MeanFunction
extends Object
implements Serializable

In this class functions for the computation of an overall distance based on the distance values determined for each column of a table are defined.

Since:
1.0
Version:
$Rev: 332 $
Author:
Roland Keller
See Also:
Serialized Form

Constructor Summary
MeanFunction()
           
 
Method Summary
abstract  double computeMean(double... values)
          Computes the overall distance
 double computeMean(Iterable<? extends Number> values)
          Computes the overall distance
 double computeMean(List<Double> values)
          Computes the overall distance
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MeanFunction

public MeanFunction()
Method Detail

computeMean

public abstract double computeMean(double... values)
Computes the overall distance

Parameters:
values - the distance values for the columns
Returns:
the computed value

computeMean

public double computeMean(List<Double> values)
Computes the overall distance

Parameters:
values - the distance values for the columns
Returns:
the computed value

computeMean

public double computeMean(Iterable<? extends Number> values)
Computes the overall distance

Parameters:
values - the distance values for the columns
Returns:
the computed value

Generated December 13 2012