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