public class NumericalVariable extends Variable
| Modifier and Type | Field and Description |
|---|---|
static double |
MISSING_DOUBLE |
static float |
MISSING_FLOAT |
static int |
MISSING_INT |
static long |
MISSING_LONG |
EXPONENTIAL, LINEAR, UNDEFINED| Constructor and Description |
|---|
NumericalVariable(java.lang.String name,
int index,
int type) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
categorical() |
Range |
createRange(double val0,
double val1) |
boolean |
discrete() |
java.lang.String |
formatRange(Range sel,
boolean humanReadable) |
java.lang.String |
formatValue(double value,
boolean normalized) |
java.lang.String |
formatValue(double value,
Range sel) |
java.lang.String |
formatValue(TableRow row) |
double |
getValue(java.lang.String str,
boolean normalized) |
double |
getValue(TableRow row,
Range sel,
boolean normalized) |
void |
initValues(java.lang.String valstr) |
boolean |
missing(TableRow row) |
boolean |
numerical() |
double |
snapValue(double value,
Range sel,
boolean normalized) |
boolean |
string() |
int |
type() |
boolean |
valueAlias(java.lang.String value) |
canOpen, column, covariate, create, formatRange, formatRange, formatRange, formatType, formatValue, getAlias, getColumnSelection, getCount, getCount, getCount, getFirstChild, getIndex, getItemType, getLastChild, getName, getScaling, getType, getValue, getValue, getValue, getValues, getWeight, getWeight, include, initRange, insideSample, matchAlias, matchName, maxRange, normalize, normalize, normalize, normalize, open, setAlias, setClose, setColumnSelection, setMissingString, setOpen, setSubsample, setWeight, setWeightVariable, snapValue, sortKey, subsample, weight, weightedpublic static final int MISSING_INT
public static final long MISSING_LONG
public static final float MISSING_FLOAT
public static final double MISSING_DOUBLE
public NumericalVariable(java.lang.String name,
int index,
int type)
public void initValues(java.lang.String valstr)
initValues in class Variablepublic Range createRange(double val0, double val1)
createRange in class Variablepublic boolean categorical()
categorical in class Variablepublic double getValue(java.lang.String str,
boolean normalized)
public double getValue(TableRow row,
Range sel,
boolean normalized)
public java.lang.String formatValue(TableRow row)
formatValue in class Variablepublic java.lang.String formatValue(double value,
boolean normalized)
formatValue in class Variablepublic java.lang.String formatValue(double value,
Range sel)
formatValue in class Variablepublic boolean valueAlias(java.lang.String value)
valueAlias in class Variablepublic double snapValue(double value,
Range sel,
boolean normalized)
public java.lang.String formatRange(Range sel, boolean humanReadable)
formatRange in class Variable