Class Bound<T extends java.lang.Comparable<T>>

  • Direct Known Subclasses:
    Bound.Any, Bound.Eq, Bound.Gt, Bound.In, Bound.Lt

    public abstract class Bound<T extends java.lang.Comparable<T>>
    extends java.lang.Object
    Tracks threshold values while constructing a decision tree.

    Used to filter candidate thresholds and classification rules.

    • Nested Class Summary

      Nested Classes 
      Modifier and Type Class Description
      static class  Bound.Any<T extends java.lang.Comparable<T>>  
      static class  Bound.Eq<T extends java.lang.Comparable<T>>  
      static class  Bound.Gt<T extends java.lang.Comparable<T>>  
      static class  Bound.In<T extends java.lang.Comparable<T>>  
      static class  Bound.Lt<T extends java.lang.Comparable<T>>  
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static Bound.Any ANY  
    • Constructor Summary

      Constructors 
      Constructor Description
      Bound()  
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      abstract boolean canBeRestrictedBy​(T value)
      Checks if this bound can be restricted by the given value.
      abstract Bound<T> eq​(T value)
      Restricts this bound such that it includes only the given value.
      abstract Bound<T> gt​(T value)
      Restricts this bound such that it includes only values that are greater than the given value.
      abstract boolean includes​(T value)
      Checks if this bound includes the given value.
      abstract Bound<T> lt​(T value)
      Restricts this bound such that it includes only values that are less than the given value.
      abstract boolean overlaps​(T begin, T end)
      Checks if this bound overlaps with the given range.
      • Methods inherited from class java.lang.Object

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

      • Bound

        public Bound()
    • Method Detail

      • lt

        public abstract Bound<T> lt​(T value)
        Restricts this bound such that it includes only values that are less than the given value.
      • eq

        public abstract Bound<T> eq​(T value)
        Restricts this bound such that it includes only the given value.
      • gt

        public abstract Bound<T> gt​(T value)
        Restricts this bound such that it includes only values that are greater than the given value.
      • includes

        public abstract boolean includes​(T value)
        Checks if this bound includes the given value.
      • canBeRestrictedBy

        public abstract boolean canBeRestrictedBy​(T value)
        Checks if this bound can be restricted by the given value.
      • overlaps

        public abstract boolean overlaps​(T begin,
                                         T end)
        Checks if this bound overlaps with the given range. Begin and end are inclusive.