public class RealIDInfo extends RealInfo implements VariableIDInfo
RealInfo
, but with an additional int id field.max, mean, min, sumSquares
count, name
Constructor and Description |
---|
RealIDInfo(RealInfo info,
int id)
Constructs a deep copy of the supplied real info and id.
|
RealIDInfo(String name,
int count,
double max,
double min,
double mean,
double sumSquares,
int id)
Constructs a real id info from the supplied arguments.
|
Modifier and Type | Method and Description |
---|---|
RealIDInfo |
copy()
Returns a copy of this variable info.
|
int |
getID()
The id number associated with this variable.
|
RealIDInfo |
makeIDInfo(int id)
Generates a VariableIDInfo subclass which represents the same feature.
|
RealIDInfo |
rename(String newName)
Rename generates a fresh VariableInfo with the new name.
|
String |
toString() |
getMax, getMean, getMin, getVariance, observe, uniformSample
equals, getCount, getName, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
getCount, getName, uniformSample
public RealIDInfo(String name, int count, double max, double min, double mean, double sumSquares, int id)
name
- The feature name.count
- The feature occurrence count.max
- The maximum observed value.min
- The minimum observed value.mean
- The observed mean.sumSquares
- The observed sum of squared values.id
- The id number.public RealIDInfo(RealInfo info, int id)
info
- The info to copy.id
- The new id number.public int getID()
VariableIDInfo
Ids are non-negative integers.
getID
in interface VariableIDInfo
public RealIDInfo makeIDInfo(int id)
VariableInfo
makeIDInfo
in interface VariableInfo
makeIDInfo
in class RealInfo
id
- The id number.public RealIDInfo rename(String newName)
VariableInfo
rename
in interface VariableInfo
rename
in class RealInfo
newName
- The new name.public RealIDInfo copy()
VariableInfo
copy
in interface VariableInfo
copy
in class RealInfo
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.