vec_math
Class DataFileAnalyser

java.lang.Object
  extended by util.CommandLineParser
      extended by util.PropertyParser
          extended by util.DataFileReader
              extended by vec_math.DataFileAnalyser
Direct Known Subclasses:
Fourier.AbstractFile, LeastFourier.File, MinimumStringLength.File, MultipleFrequencyFit.File, PhaseDispersionMinimization.File, StatisticAnalyser.File

public abstract class DataFileAnalyser
extends DataFileReader

A data file reader that further specializes on data modelling.


Nested Class Summary
 
Nested classes/interfaces inherited from class util.DataFileReader
DataFileReader.Ascii
 
Nested classes/interfaces inherited from class util.CommandLineParser
CommandLineParser.Test
 
Field Summary
private static String ONESWITCHES
          The switches for adding properties.
private  VectorG[] post
          The data post-processed.
private  VectorG[] pre
          The data as precessed by the analyser.
private static String THREESWITCHES
          The switches for adding properties.
private static String ZEROSWITCHES
          The switches for adding properties.
 
Fields inherited from class util.DataFileReader
DEFSPLITSIGMA, FOOT, MAP, nf, out, USE
 
Constructor Summary
protected DataFileAnalyser(Map<String,String> sc)
          Constructs the parser to the sensor tester.
 
Method Summary
protected abstract  Analyser createAnalyser()
          Creates the analyser to use out of parsed properties.
protected  double extremalValue(double ev)
          Reformat the extremal Value to a different meaning?
protected  int[] getForwardComplex()
          If the analyser's processed data is complex and we want to see that in the printout, return the indices as an integer array here.
protected  String getForwardHead()
          Returns a description of the analysers processed data.
protected  int[] getPostComplex()
          If the analysier's visualized data is complex and we want to see that in the printout, return the indices as an integer array here.
protected  String getPostHead()
          Returns a description of the analysers processed data.
protected  VectorG[] getProcessedData()
          Returns the processed data.
protected  VectorG[] getVisualizedData()
          Returns the visualizable data.
protected  boolean processSingleData(VectorG[] workon)
          We create an analyser via the abstract method and then procced with the data as defined by the command line switches.
 
Methods inherited from class util.DataFileReader
getData, getLinearFit, getLinearFit, getParsedProperties, getPiecewisePolynomialFit, getPiecewisePolynomialFit, getSplineFit, getSplineFit, getWhiteNoise, getWhiteNoise, print, printOut, printOut, process, processData, processSingleData
 
Methods inherited from class util.PropertyParser
parseMap, parseMap, parseProperties, parseProperties, parseProperties
 
Methods inherited from class util.CommandLineParser
getArguments, getCommandLine, getCommands, getRegisteredSwitches, hasAnySwitch, hasSwitch, hasSwitch, haveAllSwitches, parse, printCommandLine, registerLine, registerSwitches, setCommands, staticUsage, usage
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZEROSWITCHES

private static final String ZEROSWITCHES
The switches for adding properties.

See Also:
Constant Field Values

ONESWITCHES

private static final String ONESWITCHES
The switches for adding properties.

See Also:
Constant Field Values

THREESWITCHES

private static final String THREESWITCHES
The switches for adding properties.

See Also:
Constant Field Values

pre

private VectorG[] pre
The data as precessed by the analyser.


post

private VectorG[] post
The data post-processed.

Constructor Detail

DataFileAnalyser

protected DataFileAnalyser(Map<String,String> sc)
Constructs the parser to the sensor tester. All known switches are registered.

Method Detail

createAnalyser

protected abstract Analyser createAnalyser()
Creates the analyser to use out of parsed properties. Normal action there is to use the parsed properties like in Analyser = new Analyser(getParsedProperties()) The parsed properties are available when the single data are processed.


processSingleData

protected boolean processSingleData(VectorG[] workon)
                             throws ParseException
We create an analyser via the abstract method and then procced with the data as defined by the command line switches.

Specified by:
processSingleData in class DataFileReader
Returns:
True, if ok.
Throws:
ParseException

getProcessedData

protected VectorG[] getProcessedData()
Returns the processed data. Only availabel after a call to DataFileReader.process(java.lang.String[]).


getVisualizedData

protected VectorG[] getVisualizedData()
Returns the visualizable data. Only availabel after a call to DataFileReader.process(java.lang.String[]).


getForwardComplex

protected int[] getForwardComplex()
If the analyser's processed data is complex and we want to see that in the printout, return the indices as an integer array here. Default implementation returns null


getForwardHead

protected String getForwardHead()
Returns a description of the analysers processed data.


getPostComplex

protected int[] getPostComplex()
If the analysier's visualized data is complex and we want to see that in the printout, return the indices as an integer array here.


getPostHead

protected String getPostHead()
Returns a description of the analysers processed data.


extremalValue

protected double extremalValue(double ev)
Reformat the extremal Value to a different meaning?