Class OngoingInterpolation<E,​C>

  • Type Parameters:
    E -
    C -

    public class OngoingInterpolation<E,​C>
    extends java.lang.Object
    • Constructor Detail

      • OngoingInterpolation

        public OngoingInterpolation​(C slicePosition,
                                    Tensor<E> tensor,
                                    java.lang.Class<C> dimension)
    • Method Detail

      • interpolatingWith

        public Tensor<E> interpolatingWith​(InterpolationStrategy<C,​E> strategy)
        Defines the interpolation strategy.
        See AbstractInterpolationStrategy and its extension.
        Parameters:
        strategy - to use
        Returns:
        slicing result with interpolation between the missing comparable coordinates.
      • withLinearInterpolation

        public Tensor<E> withLinearInterpolation​(ExtendedField<E> field,
                                                 java.util.function.Function<C,​E> fieldMapper)
        Uses a linear interpolation
        Parameters:
        field - the field to interpolate in (values of the tensor)
        fieldMapper - a mapper from coordinates to field elements
        Returns: