public interface VariableInfo extends Serializable, Cloneable
Modifier and Type | Method and Description |
---|---|
VariableInfo |
copy()
Returns a copy of this variable info.
|
int |
getCount()
The occurrence count of this feature.
|
String |
getName()
The name of this feature.
|
VariableIDInfo |
makeIDInfo(int id)
Generates a VariableIDInfo subclass which represents the same feature.
|
VariableInfo |
rename(String name)
Rename generates a fresh VariableInfo with the new name.
|
double |
uniformSample(SplittableRandom rng)
Sample a value uniformly from the range of this variable.
|
String getName()
int getCount()
VariableIDInfo makeIDInfo(int id)
id
- The id number.VariableInfo rename(String name)
name
- The new name.double uniformSample(SplittableRandom rng)
rng
- The rng to use.VariableInfo copy()
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.