Class AbstractUncertainObject

    • Field Detail

      • DEFAULT_TRY_LIMIT

        public static final int DEFAULT_TRY_LIMIT
        Default retry limit for sampling, to guard against bad parameters.
        See Also:
        Constant Field Values
    • Constructor Detail

      • AbstractUncertainObject

        public AbstractUncertainObject()
    • Method Detail

      • computeBounds

        protected static HyperBoundingBox computeBounds​(NumberVector[] samples)
        Compute the bounding box for some samples.
        Parameters:
        samples - Samples
        Returns:
        Bounding box.
      • drawSample

        public abstract DoubleVector drawSample​(java.util.Random rand)
        Description copied from interface: UncertainObject
        Draw a random sampled instance.
        Specified by:
        drawSample in interface UncertainObject
        Parameters:
        rand - Random generator
        Returns:
        Sampled object.
      • getMin

        public double getMin​(int dimension)
        Description copied from interface: SpatialComparable
        Returns the minimum coordinate at the specified dimension.
        Specified by:
        getMin in interface SpatialComparable
        Parameters:
        dimension - the dimension for which the coordinate should be returned, where 0 ≤ dimension < getDimensionality()
        Returns:
        the minimum coordinate at the specified dimension
      • getMax

        public double getMax​(int dimension)
        Description copied from interface: SpatialComparable
        Returns the maximum coordinate at the specified dimension.
        Specified by:
        getMax in interface SpatialComparable
        Parameters:
        dimension - the dimension for which the coordinate should be returned, where 0 ≤ dimension < getDimensionality()
        Returns:
        the maximum coordinate at the specified dimension
      • getValue

        public java.lang.Double getValue​(int dimension)
        Description copied from interface: FeatureVector
        Returns the value in the specified dimension.
        Specified by:
        getValue in interface FeatureVector<java.lang.Double>
        Parameters:
        dimension - the desired dimension, where 0 ≤ dimension ≤ this.getDimensionality()-1
        Returns:
        the value in the specified dimension