|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectnet.sf.myra.antree.representation.Branch
public class Branch
Field Summary | |
---|---|
static java.lang.String |
ENCODER_CLASS
The property key under which the branch encoder class name is stored. |
Constructor Summary | |
---|---|
Branch(net.sf.myra.datamining.data.Term term)
Creates a new branch. |
Method Summary | |
---|---|
static Branch[] |
create(net.sf.myra.datamining.data.Metadata metadata,
net.sf.myra.datamining.data.Attribute attribute,
java.util.List<net.sf.myra.datamining.data.Instance> instances)
Returns a branch array for the specified attribute, one branch for each attribute value. |
static Branch[] |
create(net.sf.myra.datamining.data.Metadata metadata,
net.sf.myra.datamining.data.ContinuousAttribute attribute,
java.util.List<net.sf.myra.datamining.data.Instance> instances)
Returns a branch array for the specified continuous attribute, one branch for each discrete interval. |
static Branch[] |
create(net.sf.myra.datamining.data.Metadata metadata,
net.sf.myra.datamining.data.NominalAttribute attribute)
Returns a branch array for the specified attribute, one branch for each attribute value. |
int |
getCode()
Returns the code of this branch. |
Node |
getFrom()
Returns the node where this branch originates. |
net.sf.myra.datamining.data.Term |
getTerm()
Returns the term represented by this branch. |
Node |
getTo()
Returns the node that this branch leads to. |
void |
setFrom(Node from)
Sets the node where this branch originates. |
void |
setTo(Node to)
Sets the node that this branch leads to. |
java.lang.String |
toString()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String ENCODER_CLASS
Constructor Detail |
---|
public Branch(net.sf.myra.datamining.data.Term term)
term
- the term represented by the branch.Method Detail |
---|
public Node getFrom()
public void setFrom(Node from)
UNDEFINED
.
Note: This method is not thread safe.
from
- the node to set.getCode()
public Node getTo()
public void setTo(Node to)
to
- the node to set.public net.sf.myra.datamining.data.Term getTerm()
public int getCode()
UNDEFINED
, it will be computed. Note:
This method is not thread safe.
setFrom(Node)
public static Branch[] create(net.sf.myra.datamining.data.Metadata metadata, net.sf.myra.datamining.data.Attribute attribute, java.util.List<net.sf.myra.datamining.data.Instance> instances)
metadata
- the current data set metadata.attribute
- the attribute to get the values from.instances
- the list of instances.
public static Branch[] create(net.sf.myra.datamining.data.Metadata metadata, net.sf.myra.datamining.data.NominalAttribute attribute)
metadata
- the metadata object.attribute
- the nominal attribute to get the values from.
public static Branch[] create(net.sf.myra.datamining.data.Metadata metadata, net.sf.myra.datamining.data.ContinuousAttribute attribute, java.util.List<net.sf.myra.datamining.data.Instance> instances)
metadata
- the metadata object.attribute
- the continuous attribute to get the values from.instances
- the instances used for creating the discrete intervals.
public java.lang.String toString()
toString
in class java.lang.Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |