Package edu.cmu.tetrad.data
Class IntDataBox
java.lang.Object
edu.cmu.tetrad.data.IntDataBox
- All Implemented Interfaces:
- DataBox,- TetradSerializable,- Serializable
Stores a 2D array of integer data. Note that the missing value marker for
 this box is -99.
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionIntDataBox(int[][] data) Constructs a new data box using the given 2D short data array as data.IntDataBox(int rows, int cols) Constructs an 2D short array consisting entirely of missing values (-99).
- 
Method SummaryModifier and TypeMethodDescriptioncopy()get(int row, int col) int[][]getData()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- 
IntDataBoxpublic IntDataBox(int rows, int cols) Constructs an 2D short array consisting entirely of missing values (-99).
- 
IntDataBoxpublic IntDataBox(int[][] data) Constructs a new data box using the given 2D short data array as data.
 
- 
- 
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.shortValue().
- 
get
- 
copy
- 
like
- 
viewSelection- Specified by:
- viewSelectionin interface- DataBox
- Returns:
- this data box, restricted to the given rows and columns.
 
- 
getDatapublic int[][] getData()
 
-