edu.duke.cs.banjo.data.observations
Class PreprocessedObservations
java.lang.Object
edu.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.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
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
PreprocessedObservations
public PreprocessedObservations(Settings _processData)
throws java.lang.Exception
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