net.sf.myra.gui.parser
Class ResultParser

java.lang.Object
  extended by net.sf.myra.gui.parser.ResultParser
Direct Known Subclasses:
AccuracyParser, ElapsedTimeParser, hFmeasureParser, SensitivitySpecificityParser, SizeParser, TrainingAccuracyParser, TreeSizeParser

public abstract class ResultParser
extends java.lang.Object

Base class for result parsers.

Version:
$Revision$ $Date:: $
Author:
Fernando Esteban Barril Otero

Constructor Summary
ResultParser()
           
 
Method Summary
abstract  java.lang.String parse(java.lang.String text)
          Returns the result (as a string) of parsing the specified text.
 java.lang.String stdev(java.lang.Double[] numbers)
          Returns the mean and standard deviation of the specified distribution of values.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ResultParser

public ResultParser()
Method Detail

parse

public abstract java.lang.String parse(java.lang.String text)
Returns the result (as a string) of parsing the specified text.

Parameters:
text - the text to be parsed.
Returns:
the result (as a string) of parsing the specified text.

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

stdev

public java.lang.String stdev(java.lang.Double[] numbers)
Returns the mean and standard deviation of the specified distribution of values. The variance calculation assumes that cross-validation has been used.

Parameters:
numbers - the distribution of values.
Returns:
the mean and standard deviation of the specified distribution of values.


Copyright © 2013. All Rights Reserved.