RePast
v. 2.0

uchicago.src.sim.analysis
Class StatisticUtilities

java.lang.Object
  |
  +--uchicago.src.sim.analysis.StatisticUtilities

public class StatisticUtilities
extends Object

Statistical utilities. Once the COLT library is finalized this will be a wrapper around its statistics package. These methods are used by the other Statistics classes. A user should not need to call this methods under normal circumstances.


Constructor Summary
StatisticUtilities()
           
 
Method Summary
static double getAverage(ArrayList list, Method m)
          Gets an average of the values returned by every member of the specified list when method m is called on them.
static double getDouble(Object o, Method m)
          Gets the double returned when the specified method is called on the specified object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StatisticUtilities

public StatisticUtilities()
Method Detail

getAverage

public static double getAverage(ArrayList list,
                                Method m)
Gets an average of the values returned by every member of the specified list when method m is called on them.

Parameters:
list - the list of objects on which to call the method
m - the method to call on the object
Returns:
the average

getDouble

public static double getDouble(Object o,
                               Method m)
Gets the double returned when the specified method is called on the specified object.

Parameters:
o - the object on which to call the method
m - the method to call on the object

RePast
v. 2.0

Bug reports and feature requests to RePast