Package org.tensorics.core.tensor.lang
Class OngoingInterpolation<E,C>
- java.lang.Object
-
- org.tensorics.core.tensor.lang.OngoingInterpolation<E,C>
-
- Type Parameters:
E
-C
-
public class OngoingInterpolation<E,C> extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description OngoingInterpolation(C slicePosition, Tensor<E> tensor, java.lang.Class<C> dimension)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Tensor<E>
interpolatingWith(InterpolationStrategy<C,E> strategy)
Defines the interpolation strategy.Tensor<E>
withLinearInterpolation(ExtendedField<E> field, java.util.function.Function<C,E> fieldMapper)
Uses a linear interpolation
-
-
-
Method Detail
-
interpolatingWith
public Tensor<E> interpolatingWith(InterpolationStrategy<C,E> strategy)
Defines the interpolation strategy.
SeeAbstractInterpolationStrategy
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:
-
-