Facemorph.Stats
Class Model.DataDescription

java.lang.Object
  extended by Facemorph.Stats.Model.DataDescription
Direct Known Subclasses:
Model.ImageSetDescription
Enclosing class:
Model

protected class Model.DataDescription
extends java.lang.Object


Field Summary
 java.io.File fileName
          (Optional) File pointing the data (or where the data will be stored on completion
 BigMat processedDataMatrix
          The data in processed form in a matrix (null if unprocessed).
 double[] processedDataVector
          The data in processed form in a vector (null if unprocessed).
 int[] selectedRecords
          Rows in the data selected for processing (indexed)
 int[] selectedVariables
          Columns in the data selected for processing (indexed)
 
Constructor Summary
Model.DataDescription()
           
Model.DataDescription(iniFile in)
           
 
Method Summary
 BigMat getProcessedDataMatrix()
           
 boolean largeData()
          If the data is too large to be stored in a single Matrix or vector it must be loaded and processed on the fly
 boolean loadFileData()
          Attempt to load the data in a data description from a file
 boolean read(iniFile in)
           
 boolean usingImageSet()
          If the data set contains a list of image name, will these be used?
 boolean usingSubset()
          If only a subset of the data is being used (or a mask in the case of image data)
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fileName

public java.io.File fileName
(Optional) File pointing the data (or where the data will be stored on completion


selectedVariables

public int[] selectedVariables
Columns in the data selected for processing (indexed)


selectedRecords

public int[] selectedRecords
Rows in the data selected for processing (indexed)


processedDataMatrix

public BigMat processedDataMatrix
The data in processed form in a matrix (null if unprocessed). If this is filled the data in the processedDataVector should not be)


processedDataVector

public double[] processedDataVector
The data in processed form in a vector (null if unprocessed). If this is filled the data in the processedDataMatrix should not be)

Constructor Detail

Model.DataDescription

public Model.DataDescription()

Model.DataDescription

public Model.DataDescription(iniFile in)
Method Detail

usingImageSet

public boolean usingImageSet()
If the data set contains a list of image name, will these be used?

Returns:
true if using the image set

usingSubset

public boolean usingSubset()
If only a subset of the data is being used (or a mask in the case of image data)

Returns:
true if using subset

getProcessedDataMatrix

public BigMat getProcessedDataMatrix()
Returns:
the processed data matrix, processing it if neccessary

largeData

public boolean largeData()
If the data is too large to be stored in a single Matrix or vector it must be loaded and processed on the fly

Returns:
true if the data too large to be stored in RAW

loadFileData

public boolean loadFileData()
                     throws java.io.IOException
Attempt to load the data in a data description from a file

Parameters:
data - data-description to load
Returns:
true if successfully loaded
Throws:
java.io.IOException

read

public boolean read(iniFile in)