org.jscience.architecture.lift
Class ResultAnalyzer

java.lang.Object
  extended by org.jscience.architecture.lift.ResultAnalyzer

public class ResultAnalyzer
extends java.lang.Object

This file is licensed under the GNU Public Licens (GPL).
This is a utility class that generates minimal statistical information from the results logged by LoggerPassengerProcessor. The results are displayed in CSV on System.out.


Constructor Summary
ResultAnalyzer()
           
 
Method Summary
static void Analyze(java.lang.String[][] Data, java.lang.String FileName)
          Analyzes the Data matrix (which is produced by SimplePassengerProcessor).
static java.lang.String DTS(double In)
          A handy util to transfrom doubles to Strings with exactly 3 decimal places after the dot.
static void main(java.lang.String[] Args)
          The main program for the ResultAnalyzer class that uses only the Args[0] as the name of the input file.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ResultAnalyzer

public ResultAnalyzer()
Method Detail

Analyze

public static void Analyze(java.lang.String[][] Data,
                           java.lang.String FileName)
Analyzes the Data matrix (which is produced by SimplePassengerProcessor). Prints some info (averages and variances of the waiting and travel times.

Parameters:
Data - DOCUMENT ME!
FileName - DOCUMENT ME!
Throws:
java.lang.RuntimeException - DOCUMENT ME!

DTS

public static java.lang.String DTS(double In)
A handy util to transfrom doubles to Strings with exactly 3 decimal places after the dot.

Parameters:
In - DOCUMENT ME!
Returns:
DOCUMENT ME!

main

public static void main(java.lang.String[] Args)
The main program for the ResultAnalyzer class that uses only the Args[0] as the name of the input file.

Parameters:
Args - DOCUMENT ME!