Class OutOfBoundsRandomValue<T extends RealType<T>>

    • Field Detail

      • minValue

        protected final double minValue
      • maxValue

        protected final double maxValue
      • range

        protected final double range
      • rnd

        protected final java.util.Random rnd
    • Constructor Detail

      • OutOfBoundsRandomValue

        public OutOfBoundsRandomValue​(F f,
                                      T value,
                                      java.util.Random rnd,
                                      double min,
                                      double max)
    • Method Detail

      • get

        public final T get()
        Description copied from interface: Sampler
        Access the actual T instance providing access to a pixel, sub-pixel or integral region value the Sampler points at.
      • copy

        public final OutOfBoundsRandomValue<T> copy()
        Returns:
        - A new Sampler in the same state accessing the same values. It does NOT copy T, just the state of the Sampler. Otherwise use T.copy() if available. Sampler.copy().get() == Sampler.get(), i.e. both hold the same value, not necessarily the same instance (this is the case for an ArrayCursor for example)