Class ConfNone

  • All Implemented Interfaces:
    Confidence
    Direct Known Subclasses:
    ConfQNone

    public class ConfNone
    extends java.lang.Object
    implements Confidence
    Turns off calculation of a confidence measure. Immutable class. No Confidence measure is returned from the predicttion methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      ConfNone()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int getConfType()
      Return the confidence type.
      double getDblArg​(int idx)
      Return a double parameter.
      int getIntArg​(int idx)
      Return an integer parameter.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • ConfNone

        public ConfNone()
    • Method Detail

      • getConfType

        public int getConfType()
        Return the confidence type.
        Specified by:
        getConfType in interface Confidence
        Returns:
        the confidence type for the None measure.
      • getIntArg

        public int getIntArg​(int idx)
        Return an integer parameter. There are none, we just always return -1.
        Specified by:
        getIntArg in interface Confidence
        Parameters:
        idx - the integer parameter index, zero based.
        Returns:
        -1.
      • getDblArg

        public double getDblArg​(int idx)
        Return a double parameter. There are none, we always return -1.0.
        Specified by:
        getDblArg in interface Confidence
        Parameters:
        idx - the double parameter index, zero based.
        Returns:
        -1.0