|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectedu.duke.cs.banjo.data.observations.Observations
edu.duke.cs.banjo.data.observations.ObservationsAsMatrix
Loads the observation data necessary for the search.
Details:
- Important:
The Evaluator class uses the internal representation of the ObservationsAsMatrix
for performance, thus breaking encapsulation.
- Implementation of a data set, using a simple matrix of
    n rows of observationDataPoints
        by
    m columns of variables (nodes)
Change History:
Based on Banjo 1.0 Observations class, created on Mar 4, 2004
4/1/2004 hjs Change data type for external access to int
7/7/2004 hjs Change the internal representation from Char to Integer
9/14/2005 (v1.0.4) hjs Changes to properly handle discretization of multiple
observation files
11/28/2005 (v1.0.5) hjs Correction to interval discretization
10/25/2005 (v2.0) hjs Eliminate the references to the (never supported)
"related observations" code. (This was old code in
desperate need of cleanup.)
10/28/2005 (v2.0) hjs Add additional field for access to the overall maximum
value that the variables can assume.
3/4/2008 (v2.2) hjs Pull out JZOOWildCardFilter into separate class.
Field Summary | |
int[][][] |
observationDataPoints
|
Fields inherited from class edu.duke.cs.banjo.data.observations.Observations |
combinedObservationDataPointsAsLoaded, combinedPreprocessedObservationsAsLoaded, maxMarkovLag, maxValue, maxValueCount, minMarkovLag, numberOfObservationsFiles, observationCount, observationRowCount, observedObservationCount, preprocessedObservationsWithFileInfo, processData, specifiedObservationCount, varCount, variableNames |
Constructor Summary | |
ObservationsAsMatrix(Settings _processData)
ObservationsAsMatrix constructor. |
Method Summary | |
protected void |
combinePreprocessedObservations(PreprocessedObservations[] _preprocessedObservations)
Combines the loaded observations into a single large array. |
void |
computeMaxValueCounts()
Computes the maximum values for all the variables in the data set given by the current observations. |
int |
getMaxValueCount()
Get the maximum value that any variable can assume. |
int |
getMaxValueCount(int _nodeID)
Get the maximum value that a specified variable can assume. |
int |
getObservationCount()
|
int |
getObservationRowCount()
|
PreprocessedObservations[] |
getObservationsArrayWithFileInfo()
|
int |
getObservationValue(int _observationRow,
int _variableID,
int _MarkovLag)
|
java.lang.String |
getValueCountList()
|
int |
getVarCount()
|
java.lang.String[] |
getVariableNames()
|
void |
loadData(Settings _processData)
Loads the data from the user-specified observations files. |
void |
prepareData()
Prepares the observations by applying an (optional) discretization. |
void |
releaseStagingData()
Releases the data structures used for storing the original "raw" data (as loaded from file in String format). |
void |
setObservationDataPoints(int[][][] _observations)
|
void |
setObservationValue(int _observationIndex,
int _variableIndex,
int _MarkovLagIndex,
int _observationValue)
|
void |
setVariableNames(java.lang.String[] _variableNames)
|
java.lang.String |
toString()
|
private boolean |
validateRequiredData()
Validates the settings values required for loading the observations. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
public int[][][] observationDataPoints
Constructor Detail |
public ObservationsAsMatrix(Settings _processData) throws java.lang.Exception
_processData
- The settings that define the search process.Method Detail |
private boolean validateRequiredData() throws java.lang.Exception
java.lang.Exception
public void loadData(Settings _processData) throws java.lang.Exception
_processData
- The settings that define the search process.
java.lang.Exception
protected void combinePreprocessedObservations(PreprocessedObservations[] _preprocessedObservations) throws java.lang.Exception
_preprocessedObservations
- An array of PreprocessedObservations, each obtained, e.g., from a file.
java.lang.Exception
public void prepareData() throws java.lang.Exception
java.lang.Exception
public int getMaxValueCount(int _nodeID)
public int getMaxValueCount()
public void computeMaxValueCounts() throws java.lang.Exception
java.lang.Exception
public java.lang.String toString()
public void setObservationValue(int _observationIndex, int _variableIndex, int _MarkovLagIndex, int _observationValue)
public int getObservationValue(int _observationRow, int _variableID, int _MarkovLag)
public final int getObservationRowCount()
public void setObservationDataPoints(int[][][] _observations)
_observations
- The observationDataPoints to set.public final int getVarCount()
public java.lang.String getValueCountList()
public int getObservationCount()
public PreprocessedObservations[] getObservationsArrayWithFileInfo()
public void releaseStagingData()
public java.lang.String[] getVariableNames()
public void setVariableNames(java.lang.String[] _variableNames)
_variableNames
- The variableNames to set.
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |