org.tensorics.core.reduction.InterpolationStrategy Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tensorics-core Show documentation
Show all versions of tensorics-core Show documentation
Tensorics is a java framework which uses a tensor as a central object. A tensor represents a set of values placed in an N-dimensional space. Wherever you are tempted to use maps of maps, a tensor might be a good choice ;-) Tensorics provides methods to create, transform and performing calculations with those tensors.
/**
* Copyright (c) 2015 European Organisation for Nuclear Research (CERN), All Rights Reserved.
*/
package org.tensorics.core.reduction;
import org.tensorics.core.tensor.Tensor;
/**
* The interface for the interpolation strategy in the tensors.
*
* @author agorzaws
* @param type of the coordinate, must extends {@link Comparable}
* @param type of the values in the {@link Tensor}
*/
public interface InterpolationStrategy, V> {
/**
* Returns interpolated value for coordinate C.
*
* @param tensorWithTheOnlyOneCoordinateOfC the tensor where only C coordinates are kept
* @param coordineteToInterpolate
* @return the interpolated value
*/
V getInterpolatedValue(Tensor tensorWithTheOnlyOneCoordinateOfC, C coordineteToInterpolate);
}