Interface RealRandomAccessible<T>
- All Superinterfaces:
EuclideanSpace, Typed<T>
- All Known Subinterfaces:
RealRandomAccessibleRealInterval<T>
- All Known Implementing Classes:
AbstractConvertedRealRandomAccessible, BiConvertedRealRandomAccessible, BiConvertedRealRandomAccessibleRealInterval, ConvertedRealRandomAccessible, ConvertedRealRandomAccessibleRealInterval, ExtendedRealRandomAccessibleRealInterval, FunctionRealRandomAccessible, Interpolant, Localizables.RealLocationRealRandomAccessible, RealPositionRealRandomAccessible
f:Rn→T
A function over real space that can create a random access Sampler.
If your algorithm takes a RealRandomAccessible, this usually means that you
expect that the domain is infinite. (In contrast to this,
RealRandomAccessibleRealIntervals have a finite domain.)
Similarly to a RandomAccessible, a RealRandomAccessible might
be defined only partially within the space.
-
Method Summary
Modifier and TypeMethodDescriptiondefault TgetAt(double... position) Convenience method to query aRealRandomAccessiblefor the value at a position.default TgetAt(float... position) Convenience method to query aRealRandomAccessiblefor the value at a position.default TgetAt(RealLocalizable position) Convenience method to query aRealRandomAccessiblefor the value at a position.Create a random access sampler for real coordinates.realRandomAccess(RealInterval interval) Methods inherited from interface EuclideanSpace
numDimensions
-
Method Details
-
realRandomAccess
RealRandomAccess<T> realRandomAccess()Create a random access sampler for real coordinates.- Returns:
- random access sampler
-
realRandomAccess
-
getAt
Convenience method to query aRealRandomAccessiblefor the value at a position.WARNING: This method is VERY SLOW, and memory inefficient when used in tight loops, or called many times!!! Use
realRandomAccess()when efficiency is important.This method is a short cut for
realRandomAccess().setPositionAndGet( position );- Parameters:
position- , length must be ≥EuclideanSpace.numDimensions()- Returns:
- value of the the
RandomAccessibleatposition.
-
getAt
Convenience method to query aRealRandomAccessiblefor the value at a position.WARNING: This method is VERY SLOW, and memory inefficient when used in tight loops, or called many times!!! Use
realRandomAccess()when efficiency is important.This method is a short cut for
realRandomAccess().setPositionAndGet( position );- Parameters:
position- , length must be ≥EuclideanSpace.numDimensions()- Returns:
- value of the the
RandomAccessibleatposition.
-
getAt
Convenience method to query aRealRandomAccessiblefor the value at a position.WARNING: This method is VERY SLOW, and memory inefficient when used in tight loops, or called many times!!! Use
realRandomAccess()when efficiency is important.This method is a short cut for
realRandomAccess().setPositionAndGet( position );- Parameters:
position- ,EuclideanSpace.numDimensions()must be ≥EuclideanSpace.numDimensions()- Returns:
- value of the the
RandomAccessibleatposition.
-