edu.duke.cs.banjo.data.observations
Class DataPreparer

java.lang.Object
  extended byedu.duke.cs.banjo.data.observations.DataPreparer
All Implemented Interfaces:
DataPreparerI
Direct Known Subclasses:
DataPreparerBasic

public abstract class DataPreparer
extends java.lang.Object
implements DataPreparerI

Contains the code common to DataPreparer implementations.

Details:

Change History:
Created on Dec 1, 2005

Author:
Jurgen Sladeczek (hjs)
For the latest info, please visit www.cs.duke.edu.

Field Summary
protected  int maxMarkovLag
           
protected  PreprocessedObservations observationsToDiscretize
           
protected  Settings processData
           
(package private)  java.lang.String[][] strOriginalDataPoints
           
protected  int varCount
           
 
Constructor Summary
DataPreparer(Settings _processData, PreprocessedObservations _observationsToDiscretize)
           
 
Method Summary
abstract  void discretizeData()
           
abstract  java.lang.Object prepareReport()
           
private  boolean validateRequiredData()
          Validates the settings values required for preparing the data (currently essentially the discretization options).
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface edu.duke.cs.banjo.data.observations.DataPreparerI
getDiscretizedValue
 

Field Detail

processData

protected Settings processData

varCount

protected final int varCount

maxMarkovLag

protected final int maxMarkovLag

observationsToDiscretize

protected PreprocessedObservations observationsToDiscretize

strOriginalDataPoints

java.lang.String[][] strOriginalDataPoints
Constructor Detail

DataPreparer

public DataPreparer(Settings _processData,
                    PreprocessedObservations _observationsToDiscretize)
             throws java.lang.Exception
Method Detail

validateRequiredData

private boolean validateRequiredData()
                              throws java.lang.Exception
Validates the settings values required for preparing the data (currently essentially the discretization options).

Returns:
Returns the boolean flag that indicates whether a crucial setting could not be validated.
Throws:
java.lang.Exception

discretizeData

public abstract void discretizeData()
                             throws java.lang.Exception
Specified by:
discretizeData in interface DataPreparerI
Throws:
java.lang.Exception

prepareReport

public abstract java.lang.Object prepareReport()
                                        throws java.lang.Exception
Specified by:
prepareReport in interface DataPreparerI
Throws:
java.lang.Exception