Constructor and Description |
---|
PosProb(boolean isPositive,
double prob)
Constructor
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(PosProb o)
Compares the ordering of two different PosProb objects with respect to their associated probability values
|
double |
getProb()
Provides the probability associated to a given instance
|
boolean |
isPositiveInstance()
Checks if a given probability related to an instance is positive or not
|
java.lang.String |
toString()
Aggregates the class of the associated instance together with its associated probability
|
public PosProb(boolean isPositive, double prob)
isPositive
- Boolean value that indicates if the associated probability value is related to a positive instanceprob
- Probability associated to a given instancepublic boolean isPositiveInstance()
public double getProb()
public int compareTo(PosProb o)
compareTo
in interface java.lang.Comparable<PosProb>
public java.lang.String toString()
toString
in class java.lang.Object