Class OutOfBoundsRandomValue<T extends RealType<T>>

Type Parameters:
T -
All Implemented Interfaces:
EuclideanSpace, Localizable, Bounded, OutOfBounds<T>, Positionable, RandomAccess<T>, RealLocalizable, Sampler<T>

public class OutOfBoundsRandomValue<T extends RealType<T>> extends AbstractOutOfBoundsValue<T>
Return a random value in a certain range when outside of the Interval
Author:
Stephan Preibisch, Stephan Saalfeld
  • Field Details

    • minValue

      protected final double minValue
    • maxValue

      protected final double maxValue
    • range

      protected final double range
    • rnd

      protected final Random rnd
  • Constructor Details

    • OutOfBoundsRandomValue

      protected OutOfBoundsRandomValue(OutOfBoundsRandomValue<T> outOfBounds)
    • OutOfBoundsRandomValue

      public OutOfBoundsRandomValue(F f, T value, Random rnd, double min, double max)
  • Method Details

    • 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)
    • copyRandomAccess

      public final OutOfBoundsRandomValue<T> copyRandomAccess()