Package edu.cmu.tetrad.data
Class SplitCasesSpec
java.lang.Object
edu.cmu.tetrad.data.SplitCasesSpec
- All Implemented Interfaces:
- TetradSerializable,- Serializable
Specifies how a column (continuous or discrete) should be discretized. For a discrete column the mapping is int[]
 remap; for a continuous column the mapping is double[] cutoffs. The splitNames are the string labels for the
 splitNames. This is just a small immutable class that columns can map to in order to remember how discretizations
 were done so that the user doesn't have to keep typing in information over and over again.
- Version:
- $Id: $Id
- Author:
- josephramsey
- See Also:
- 
Constructor SummaryConstructorsConstructorDescriptionSplitCasesSpec(int sampleSize, int[] breakpoints, List<String> splits) Constructor for SplitCasesSpec.
- 
Method SummaryModifier and TypeMethodDescriptionint[]Getter for the fieldbreakpoints.intGetter for the fieldsampleSize.Getter for the fieldsplitNames.static SplitCasesSpecGenerates a simple exemplar of this class to test serialization.
- 
Constructor Details- 
SplitCasesSpecConstructor for SplitCasesSpec. - Parameters:
- sampleSize- a int
- breakpoints- an array of objects
- splits- a- Listobject
 
 
- 
- 
Method Details- 
serializableInstanceGenerates a simple exemplar of this class to test serialization.- Returns:
- a SplitCasesSpecobject
 
- 
getSplitNamesGetter for the field splitNames.- Returns:
- a Listobject
 
- 
getBreakpointspublic int[] getBreakpoints()Getter for the field breakpoints.- Returns:
- an array of objects
 
- 
getSampleSizepublic int getSampleSize()Getter for the field sampleSize.- Returns:
- a int
 
 
-