public abstract class SkeletalVariableInfo extends Object implements VariableInfo
Dataset
.Modifier and Type | Field and Description |
---|---|
protected int |
count
How often the feature occurs in the dataset.
|
protected String |
name
The name of the feature.
|
Modifier | Constructor and Description |
---|---|
protected |
SkeletalVariableInfo(String name)
Constructs a variable info with the supplied name.
|
protected |
SkeletalVariableInfo(String name,
int count)
Constructs a variable info with the supplied name and initial count.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
int |
getCount()
Returns the occurrence count of this feature.
|
String |
getName()
Returns the name of the feature.
|
int |
hashCode() |
protected void |
observe(double value)
Records the value.
|
String |
toString() |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
copy, makeIDInfo, rename, uniformSample
protected final String name
protected int count
protected SkeletalVariableInfo(String name)
name
- The feature name.protected SkeletalVariableInfo(String name, int count)
name
- The feature name.count
- The initial occurrence count.protected void observe(double value)
value
- The observed value.public String getName()
getName
in interface VariableInfo
public int getCount()
getCount
in interface VariableInfo
Copyright © 2015–2021 Oracle and/or its affiliates. All rights reserved.