jncc20
Class NaiveCredalClassifier.PartitionPoint

java.lang.Object
  extended by 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 when 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
 
Constructor Summary
protected NaiveCredalClassifier.PartitionPoint(double suppliedCrossingX, int NumMissingNonMar)
           
protected NaiveCredalClassifier.PartitionPoint(double suppliedCrossingX, int[] minimizingTupleLeft, int[] minimizingTupleRight)
           
 
Method Summary
 int compareTo(java.lang.Object SecondPartitionPoint)
           
protected  double getCrossingX()
           
protected  int[] getMinimizingTupleLeft()
           
protected  int[] getMinimizingTupleRight()
           
protected  void setCrossingX(double crossingX)
           
protected  void setMinimizingTupleLeft(int[] minimizingTupleLeft)
           
protected  void setMinimizingTupleLeft(int value, int idx)
           
protected  void setMinimizingTupleRight(int[] minimizingTupleRight)
           
protected  void setMinimizingTupleRight(int value, int idx)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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

Constructor Detail

NaiveCredalClassifier.PartitionPoint

protected NaiveCredalClassifier.PartitionPoint(double suppliedCrossingX,
                                               int NumMissingNonMar)

NaiveCredalClassifier.PartitionPoint

protected NaiveCredalClassifier.PartitionPoint(double suppliedCrossingX,
                                               int[] minimizingTupleLeft,
                                               int[] minimizingTupleRight)
Method Detail

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)