public class Opt
extends java.lang.Object
This class represents the optimum class for a given explanatory value
Constructor and Description |
---|
Opt()
Dafault constructor.
|
Opt(double value,
int numClasses)
Creates a new object with the given elements
|
Modifier and Type | Method and Description |
---|---|
void |
countClass(int index)
Increases the count for the class indicated
|
int |
getOptClass()
Computes the optimum class for the explanatory value
|
double |
getValue()
Gets the explanatory value associated
|
void |
setPrior(int[] p)
Sets the priority of the classes associated to this explanatory value (the less, the more priority)
|
public Opt()
public Opt(double value, int numClasses)
value
- the explanatory valuenumClasses
- the total number of different classespublic void setPrior(int[] p)
p
- array with the priority associated to each classpublic void countClass(int index)
index
- the class for which the count will be incremented by onepublic int getOptClass()
public double getValue()