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

java.lang.Object
  extended byedu.duke.cs.banjo.data.observations.PreprocessedObservations
Direct Known Subclasses:
PreprocessedObservationsWithFileInfo

public class PreprocessedObservations
extends java.lang.Object

Contains a single, basic, set of observation data (usually supplied by a single file).

Details:
The supplied data is assumed to be originally supplied in string format. A copy of the original data is stored in string format.
After data transformation and (optional) discretization, the processed data is stored in integer format. The customers of this class are served the data in integer format.

Change History:
Created on Dec 14, 2005

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

Field Summary
protected  int observationCount
           
protected  int observedColumnCount
           
protected  int observedRowCount
           
protected  Settings processData
           
protected  java.lang.String[][] strRawObservationDataPoints
           
protected  int varCount
           
protected  java.lang.String[] variableNames
           
protected  boolean variableNamesInFile
           
protected  boolean variablesInColumns
           
 
Constructor Summary
PreprocessedObservations(Settings _processData)
           
 
Method Summary
protected  void findObservationsRowAndColumnCounts(java.lang.String _directory, java.lang.String _fileName)
           
 int getObservationCount()
           
 java.lang.String[][] getStrRawObservationDataPoints()
           
 java.lang.String[] getVariableNames()
           
protected  void loadObservationsAsColumns(java.lang.String _directoryName, java.lang.String _fileName)
           
protected  void loadObservationsAsRows(java.lang.String _directoryName, java.lang.String _fileName)
           
 void setStrRawObservationDataPoints(java.lang.String[][] _basicObservationDataPoints)
           
 java.lang.String toString()
           
private  java.lang.String[][] transposeDataPoints(java.lang.String[][] datapointsToTranspose)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

strRawObservationDataPoints

protected java.lang.String[][] strRawObservationDataPoints

processData

protected final Settings processData

varCount

protected final int varCount

observationCount

protected int observationCount

variableNames

protected java.lang.String[] variableNames

variablesInColumns

protected boolean variablesInColumns

variableNamesInFile

protected boolean variableNamesInFile

observedColumnCount

protected int observedColumnCount

observedRowCount

protected int observedRowCount
Constructor Detail

PreprocessedObservations

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

loadObservationsAsRows

protected void loadObservationsAsRows(java.lang.String _directoryName,
                                      java.lang.String _fileName)
                               throws java.lang.Exception
Throws:
java.lang.Exception

loadObservationsAsColumns

protected void loadObservationsAsColumns(java.lang.String _directoryName,
                                         java.lang.String _fileName)
                                  throws java.lang.Exception
Throws:
java.lang.Exception

findObservationsRowAndColumnCounts

protected void findObservationsRowAndColumnCounts(java.lang.String _directory,
                                                  java.lang.String _fileName)
                                           throws java.lang.Exception
Throws:
java.lang.Exception

getStrRawObservationDataPoints

public java.lang.String[][] getStrRawObservationDataPoints()
Returns:
Returns the strRawObservationDataPoints.

setStrRawObservationDataPoints

public void setStrRawObservationDataPoints(java.lang.String[][] _basicObservationDataPoints)
Parameters:
_basicObservationDataPoints - The strRawObservationDataPoints to set.

getObservationCount

public int getObservationCount()
Returns:
Returns the observationCount.

toString

public java.lang.String toString()

getVariableNames

public java.lang.String[] getVariableNames()
Returns:
Returns the variableNames.

transposeDataPoints

private java.lang.String[][] transposeDataPoints(java.lang.String[][] datapointsToTranspose)
                                          throws java.lang.Exception
Throws:
java.lang.Exception