Class MicrosphereInterpolator

java.lang.Object
org.apache.commons.math.analysis.interpolation.MicrosphereInterpolator
All Implemented Interfaces:
MultivariateRealInterpolator

public class MicrosphereInterpolator extends Object implements MultivariateRealInterpolator
Interpolator that implements the algorithm described in William Dudziak's MS thesis.
Since:
2.1
Version:
$Revision: 980944 $ $Date: 2010-07-30 22:31:11 +0200 (ven. 30 juil. 2010) $
  • Field Details

    • DEFAULT_MICROSPHERE_ELEMENTS

      public static final int DEFAULT_MICROSPHERE_ELEMENTS
      Default number of surface elements that composes the microsphere.
      See Also:
    • DEFAULT_BRIGHTNESS_EXPONENT

      public static final int DEFAULT_BRIGHTNESS_EXPONENT
      Default exponent used the weights calculation.
      See Also:
  • Constructor Details

  • Method Details

    • interpolate

      public MultivariateRealFunction interpolate(double[][] xval, double[] yval) throws MathException, IllegalArgumentException
      Computes an interpolating function for the data set.
      Specified by:
      interpolate in interface MultivariateRealInterpolator
      Parameters:
      xval - the arguments for the interpolation points. xval[i][0] is the first component of interpolation point i, xval[i][1] is the second component, and so on until xval[i][d-1], the last component of that interpolation point (where d is thus the dimension of the space).
      yval - the values for the interpolation points
      Returns:
      a function which interpolates the data set
      Throws:
      MathException - if arguments violate assumptions made by the interpolation algorithm or some dimension mismatch occurs
      IllegalArgumentException - if there are no data (xval null or zero length)
    • setBrightnessExponent

      public void setBrightnessExponent(int exponent)
      Set the brightness exponent.
      Parameters:
      exponent - Exponent for computing the distance dimming factor.
      Throws:
      NotPositiveException - if exponent < 0.
    • setMicropshereElements

      public void setMicropshereElements(int elements)
      Set the number of microsphere elements.
      Parameters:
      elements - Number of surface elements of the microsphere.
      Throws:
      NotStrictlyPositiveException - if elements <= 0.