jncc20
Class NaiveCredalClassifier.PartitionPoint
java.lang.Object
jncc20.NaiveCredalClassifier.PartitionPoint
- All Implemented Interfaces:
- java.lang.Comparable
- Enclosing class:
- NaiveCredalClassifier
private static class NaiveCredalClassifier.PartitionPoint
- extends java.lang.Object
- implements java.lang.Comparable
Helper class for NaiveCredal Classifier, used to store crossing points and minimizing tuples; it is used
to deal with missing data in the NonMar part of the testing instances.
Field Summary |
private double |
crossingX
Value of the crossing point |
private int[] |
minTupleLeft
Tuple (i.e., realization of NonMar variables missing in the istance to classify), that minimize the objective
function for values lower than crossingX |
private int[] |
minTupleRight
Tuple (i.e., realization of NonMar variables missing in the istance to classify), that minimize the objective
function for values higher than crossingX |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
crossingX
private double crossingX
- Value of the crossing point
minTupleLeft
private int[] minTupleLeft
- Tuple (i.e., realization of NonMar variables missing in the istance to classify), that minimize the objective
function for values lower than crossingX
minTupleRight
private int[] minTupleRight
- Tuple (i.e., realization of NonMar variables missing in the istance to classify), that minimize the objective
function for values higher than crossingX
NaiveCredalClassifier.PartitionPoint
protected NaiveCredalClassifier.PartitionPoint(double suppliedCrossingX,
int NumMissingNonMar)
NaiveCredalClassifier.PartitionPoint
protected NaiveCredalClassifier.PartitionPoint(double suppliedCrossingX,
int[] minimizingTupleLeft,
int[] minimizingTupleRight)
compareTo
public int compareTo(java.lang.Object SecondPartitionPoint)
throws java.lang.ClassCastException
- Specified by:
compareTo
in interface java.lang.Comparable
- Throws:
java.lang.ClassCastException
getCrossingX
protected double getCrossingX()
getMinimizingTupleLeft
protected int[] getMinimizingTupleLeft()
getMinimizingTupleRight
protected int[] getMinimizingTupleRight()
setCrossingX
protected void setCrossingX(double crossingX)
setMinimizingTupleLeft
protected void setMinimizingTupleLeft(int[] minimizingTupleLeft)
setMinimizingTupleLeft
protected void setMinimizingTupleLeft(int value,
int idx)
setMinimizingTupleRight
protected void setMinimizingTupleRight(int[] minimizingTupleRight)
setMinimizingTupleRight
protected void setMinimizingTupleRight(int value,
int idx)