Package edu.cmu.tetrad.data
Class VerticalDoubleDataBox
java.lang.Object
edu.cmu.tetrad.data.VerticalDoubleDataBox
- All Implemented Interfaces:
- DataBox,- TetradSerializable,- Serializable
Stores a 2D array of double data.
- Author:
- Joseph Ramsey
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionVerticalDoubleDataBox(double[][] data) Constructs a new data box using the given 2D double data array as data.VerticalDoubleDataBox(int rows, int cols) Constructs an 2D double array consisting entirely of missing values (Double.NaN).VerticalDoubleDataBox(DataBox dataBox) Copies the data from the given data box into this one.
- 
Method SummaryModifier and TypeMethodDescriptioncopy()get(int row, int col) double[][]like()intnumCols()intnumRows()static BoxDataSetGenerates a simple exemplar of this class to test serialization.voidSets the value at the given row/column to the given Number value.viewSelection(int[] rows, int[] cols) 
- 
Constructor Details- 
VerticalDoubleDataBoxpublic VerticalDoubleDataBox(int rows, int cols) Constructs an 2D double array consisting entirely of missing values (Double.NaN).
- 
VerticalDoubleDataBoxpublic VerticalDoubleDataBox(double[][] data) Constructs a new data box using the given 2D double data array as data.
- 
VerticalDoubleDataBoxCopies the data from the given data box into this one.
 
- 
- 
Method Details- 
serializableInstanceGenerates a simple exemplar of this class to test serialization.
- 
numRowspublic int numRows()
- 
numColspublic int numCols()
- 
setSets the value at the given row/column to the given Number value. The value used is number.doubleValue().
- 
get
- 
getVariableVectorspublic double[][] getVariableVectors()
- 
copy
- 
like
- 
viewSelection- Specified by:
- viewSelectionin interface- DataBox
- Returns:
- this data box, restricted to the given rows and columns.
 
 
-