public class Nodo
extends java.lang.Object
| Constructor and Description |
|---|
Nodo()
Default constructor.
|
Nodo(myDataset train,
int n_ejemplos,
int[] ejemplos,
int nGenerations)
Paramenter constructor.
|
| Modifier and Type | Method and Description |
|---|---|
Nodo |
copia()
Returns a copy of the node.
|
boolean |
cubre(double[] ejemplo)
Checks if an example given is covered by the node.
|
java.lang.String |
printString()
Returns a String representation of the node.
|
public Nodo()
public Nodo(myDataset train, int n_ejemplos, int[] ejemplos, int nGenerations)
train - training dataset.n_ejemplos - number of examples in this node.ejemplos - examples in this node. If all the examples have the same class, the node is directly considered as leaf.nGenerations - number of generations.public boolean cubre(double[] ejemplo)
ejemplo - given example.public java.lang.String printString()
public Nodo copia()