Class MicrosphereInterpolator
- java.lang.Object
-
- org.apache.commons.math3.analysis.interpolation.MicrosphereInterpolator
-
- All Implemented Interfaces:
MultivariateInterpolator
@Deprecated public class MicrosphereInterpolator extends Object implements MultivariateInterpolator
Deprecated.Code will be removed in 4.0. UseInterpolatingMicrosphere
andMicrosphereProjectionInterpolator
instead.Interpolator that implements the algorithm described in William Dudziak's MS thesis.- Since:
- 2.1
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_BRIGHTNESS_EXPONENT
Deprecated.Default exponent used the weights calculation.static int
DEFAULT_MICROSPHERE_ELEMENTS
Deprecated.Default number of surface elements that composes the microsphere.
-
Constructor Summary
Constructors Constructor Description MicrosphereInterpolator()
Deprecated.Create a microsphere interpolator with default settings.MicrosphereInterpolator(int elements, int exponent)
Deprecated.Create a microsphere interpolator.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description MultivariateFunction
interpolate(double[][] xval, double[] yval)
Deprecated.Computes an interpolating function for the data set.
-
-
-
Field Detail
-
DEFAULT_MICROSPHERE_ELEMENTS
public static final int DEFAULT_MICROSPHERE_ELEMENTS
Deprecated.Default number of surface elements that composes the microsphere.- See Also:
- Constant Field Values
-
DEFAULT_BRIGHTNESS_EXPONENT
public static final int DEFAULT_BRIGHTNESS_EXPONENT
Deprecated.Default exponent used the weights calculation.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
MicrosphereInterpolator
public MicrosphereInterpolator()
Deprecated.Create a microsphere interpolator with default settings. Calling this constructor is equivalent to callMicrosphereInterpolator(MicrosphereInterpolator.DEFAULT_MICROSPHERE_ELEMENTS, MicrosphereInterpolator.DEFAULT_BRIGHTNESS_EXPONENT)
.
-
MicrosphereInterpolator
public MicrosphereInterpolator(int elements, int exponent) throws NotPositiveException, NotStrictlyPositiveException
Deprecated.Create a microsphere interpolator.- Parameters:
elements
- Number of surface elements of the microsphere.exponent
- Exponent used in the power law that computes the weights (distance dimming factor) of the sample data.- Throws:
NotPositiveException
- ifexponent < 0
.NotStrictlyPositiveException
- ifelements <= 0
.
-
-
Method Detail
-
interpolate
public MultivariateFunction interpolate(double[][] xval, double[] yval) throws DimensionMismatchException, NoDataException, NullArgumentException
Deprecated.Computes an interpolating function for the data set.- Specified by:
interpolate
in interfaceMultivariateInterpolator
- Parameters:
xval
- the arguments for the interpolation points.xval[i][0]
is the first component of interpolation pointi
,xval[i][1]
is the second component, and so on untilxval[i][d-1]
, the last component of that interpolation point (whered
is thus the dimension of the space).yval
- the values for the interpolation points- Returns:
- a function which interpolates the data set
- Throws:
DimensionMismatchException
- when the array dimensions are not consistent.NoDataException
- if an array has zero-length.NullArgumentException
- if the arguments arenull
.
-
-