|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.datamining.data.Attribute
net.sf.myra.datamining.data.ContinuousAttribute
public class ContinuousAttribute
This class represents a continuous attribute.
Constructor Summary | |
---|---|
ContinuousAttribute(java.lang.String name)
Creates a new ContinuousAttribute instance. |
Method Summary | |
---|---|
ContinuousAttribute |
clone()
|
java.lang.Double[] |
domain()
Returns the domain values of this attribute. |
void |
domain(Dataset dataset)
Populates the domain values of this attribute. |
double |
entropy(java.util.List<Instance> instances)
Returns the (expected) entropy of this attribute. |
IntervalBuilder.Interval |
getInitial()
Returns the interval previously calculated. |
boolean |
isMissing(double value)
Checks if the specified value corresponds to a missing value. |
double |
mean(java.util.List<Instance> instances)
Returns the mean value of this attribute. |
void |
setInitial(IntervalBuilder.Interval initial)
|
java.lang.String |
toString()
|
void |
validate(java.lang.String value)
Checks of the current value belongs to the attribute's domain. |
Methods inherited from class net.sf.myra.datamining.data.Attribute |
---|
compareTo, equals, equals, getName, hashCode, isTarget, setName |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ContinuousAttribute(java.lang.String name)
ContinuousAttribute
instance.
name
- the attribute name.Method Detail |
---|
public IntervalBuilder.Interval getInitial()
public void setInitial(IntervalBuilder.Interval initial)
initial
- the initial to setpublic java.lang.String toString()
toString
in class java.lang.Object
public void validate(java.lang.String value)
Attribute
validate
in class Attribute
value
- to value to check.public boolean isMissing(double value)
Attribute
isMissing
in class Attribute
value
- the value to check.
true
if the specified value corresponds to a
missing value; false
otherwise.public double entropy(java.util.List<Instance> instances)
setInitial(IntervalBuilder.Interval)
with the calculated interval.
instances
- the instances used to compute the entropy.
public double mean(java.util.List<Instance> instances)
instances
- the instances used to compute the mean.
public java.lang.Double[] domain()
public void domain(Dataset dataset)
dataset
- the current dataset.public ContinuousAttribute clone()
clone
in class Attribute
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |