Class TricubicSplineInterpolaterUpdater

java.lang.Object
org.apache.commons.math3.analysis.interpolation.TricubicSplineInterpolator
mgui.geometry.volume.TricubicSplineInterpolaterUpdater
All Implemented Interfaces:
org.apache.commons.math3.analysis.interpolation.TrivariateGridInterpolator

public class TricubicSplineInterpolaterUpdater
extends org.apache.commons.math3.analysis.interpolation.TricubicSplineInterpolator
Extends TricubicSplineInterpolator to allow a ProgressUpdater.
Since:
1.0
Version:
1.0
Author:
Andrew Reid
  • Constructor Summary

    Constructors
    Constructor Description
    TricubicSplineInterpolaterUpdater()  
  • Method Summary

    Modifier and Type Method Description
    org.apache.commons.math3.analysis.interpolation.TricubicSplineInterpolatingFunction interpolate​(double[] xval, double[] yval, double[] zval, double[][][] fval, ProgressUpdater progress)  
    protected int nextIndex​(int i, int max)
    Compute the next index of an array, clipping if necessary.
    protected int previousIndex​(int i)
    Compute the previous index of an array, clipping if necessary.

    Methods inherited from class org.apache.commons.math3.analysis.interpolation.TricubicSplineInterpolator

    interpolate

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • TricubicSplineInterpolaterUpdater

      public TricubicSplineInterpolaterUpdater()
  • Method Details

    • interpolate

      public org.apache.commons.math3.analysis.interpolation.TricubicSplineInterpolatingFunction interpolate​(double[] xval, double[] yval, double[] zval, double[][][] fval, ProgressUpdater progress) throws org.apache.commons.math3.exception.NoDataException, org.apache.commons.math3.exception.NumberIsTooSmallException, org.apache.commons.math3.exception.DimensionMismatchException, org.apache.commons.math3.exception.NonMonotonicSequenceException
      Throws:
      org.apache.commons.math3.exception.NoDataException
      org.apache.commons.math3.exception.NumberIsTooSmallException
      org.apache.commons.math3.exception.DimensionMismatchException
      org.apache.commons.math3.exception.NonMonotonicSequenceException
    • nextIndex

      protected int nextIndex​(int i, int max)
      Compute the next index of an array, clipping if necessary. It is assumed (but not checked) that i is larger than or equal to 0}.
      Parameters:
      i - Index
      max - Upper limit of the array
      Returns:
      the next index
    • previousIndex

      protected int previousIndex​(int i)
      Compute the previous index of an array, clipping if necessary. It is assumed (but not checked) that i is smaller than the size of the array.
      Parameters:
      i - Index
      Returns:
      the previous index