public class example_set
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
vectordouble |
Data(int ejemplo) |
double |
Data(int ejemplo,
int variable) |
void |
Examples_per_Class(int VarClass,
int nclasses,
int[] n_examples_in_class)
For each class, it counts the number of examples
|
void |
Examples_per_Class(int VarClass,
int particion,
int nclasses,
int[] n_examples_in_class)
For each class, it counts the number of examples
|
example_set |
Extract_Test_Set(int particion) |
example_set |
Extract_Training_Set(int particion) |
double |
Grade_Is_Covered(int i) |
double |
Grade_Is_Negative_Covered(int i) |
double |
Grade_Is_Positive_Covered(int i) |
boolean |
Is_Covered(int i)
Returns whether the individual "i" is covered or not
|
boolean |
Is_Test_Example(int ejemplo,
int particion) |
boolean |
Is_Training_Example(int ejemplo,
int particion) |
void |
Mark(int[] v,
int tama,
double[] grado_p,
double[] peso_p,
double[] grado_n,
double[] peso_n) |
int |
N_Examples() |
int |
N_Partitions() |
int |
N_Variables() |
int |
Not_Covered_Examples()
It counts the number of not covered examples
|
int |
Not_Covered_Training_Example(int particion) |
void |
Remove(int[] v,
int tama) |
int |
Test_Example(int particion) |
int |
Training_Example(int particion) |
void |
UnMarkAll()
Set all positions (referred to examples) of vector "covered" to false (not covered)
Set all positions (referred to examples) of vector "gcovered" (degree of coverage) to 0
Set all positions (referred to examples) of vectors "g_positive_covered" and "g_negative_covered" (degree of positive/negative coverage) to 0
Set all positions (referred to examples) of vectors "peso_positive" and "peso_negative" (positive/negative weights) to 0
|
double |
Weight_Is_Negative_Covered(int i) |
double |
Weight_Is_Positive_Covered(int i) |
public double Data(int ejemplo, int variable)
public vectordouble Data(int ejemplo)
public int N_Examples()
public int N_Partitions()
public boolean Is_Training_Example(int ejemplo, int particion)
public boolean Is_Test_Example(int ejemplo, int particion)
public int Training_Example(int particion)
public int Test_Example(int particion)
public int Not_Covered_Training_Example(int particion)
public int Not_Covered_Examples()
It counts the number of not covered examples
public void Examples_per_Class(int VarClass, int particion, int nclasses, int[] n_examples_in_class)
For each class, it counts the number of examples
VarClass
- int The class variableparticion
- int The partition usednclasses
- int The total number of classesn_examples_in_class
- int[] Vector containing the number of examples per classpublic void Examples_per_Class(int VarClass, int nclasses, int[] n_examples_in_class)
For each class, it counts the number of examples
VarClass
- int The class variablenclasses
- int The total number of classesn_examples_in_class
- int[] Vector containing the number of examples per classpublic int N_Variables()
public void Remove(int[] v, int tama)
public void Mark(int[] v, int tama, double[] grado_p, double[] peso_p, double[] grado_n, double[] peso_n)
public void UnMarkAll()
Set all positions (referred to examples) of vector "covered" to false (not covered) Set all positions (referred to examples) of vector "gcovered" (degree of coverage) to 0 Set all positions (referred to examples) of vectors "g_positive_covered" and "g_negative_covered" (degree of positive/negative coverage) to 0 Set all positions (referred to examples) of vectors "peso_positive" and "peso_negative" (positive/negative weights) to 0
public boolean Is_Covered(int i)
Returns whether the individual "i" is covered or not
i
- int The individualpublic double Weight_Is_Positive_Covered(int i)
public double Weight_Is_Negative_Covered(int i)
public double Grade_Is_Negative_Covered(int i)
public double Grade_Is_Positive_Covered(int i)
public double Grade_Is_Covered(int i)
public example_set Extract_Training_Set(int particion)
public example_set Extract_Test_Set(int particion)