org.mrd.analysis
Class RunningBasicStatistics

java.lang.Object
  |
  +--org.mrd.analysis.RunningBasicStatistics

public class RunningBasicStatistics
extends java.lang.Object

For each iteration of the model scan the list of agents, and determine the following number of agents/number survived. keep calculated running average and std

Author:
Mark Diggory

Field Summary
protected  double count
           
protected  double sum
           
protected  double sumsq
           
 
Constructor Summary
RunningBasicStatistics()
          Creates a new instance of RunningBasicStatisticsTag
 
Method Summary
 double getCurrentAverage()
           
 double getCurrentStd()
           
 double getCurrentVariance()
           
 void incriment(double value)
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

sum

protected double sum

sumsq

protected double sumsq

count

protected double count
Constructor Detail

RunningBasicStatistics

public RunningBasicStatistics()
Creates a new instance of RunningBasicStatisticsTag

Method Detail

getCurrentAverage

public double getCurrentAverage()

getCurrentVariance

public double getCurrentVariance()

getCurrentStd

public double getCurrentStd()

incriment

public void incriment(double value)

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Parameters:
args - the command line arguments
java.lang.Exception


Copyright © 2000-2003 Mark Robert Diggory. All Rights Reserved.