Class MicrosphereInterpolator
java.lang.Object
org.apache.commons.math3.analysis.interpolation.MicrosphereInterpolator
- All Implemented Interfaces:
MultivariateInterpolator
Deprecated.
Interpolator that implements the algorithm described in
William Dudziak's
MS thesis.
- Since:
- 2.1
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final int
Deprecated.Exponent used in the power law that computes the weights of the sample data.static final int
Deprecated.Default exponent used the weights calculation.static final int
Deprecated.Default number of surface elements that composes the microsphere.private final int
Deprecated.Number of surface elements of the microsphere. -
Constructor Summary
ConstructorsConstructorDescriptionDeprecated.Create a microsphere interpolator with default settings.MicrosphereInterpolator
(int elements, int exponent) Deprecated.Create a microsphere interpolator. -
Method Summary
Modifier and TypeMethodDescriptioninterpolate
(double[][] xval, double[] yval) Deprecated.Computes an interpolating function for the data set.
-
Field Details
-
DEFAULT_MICROSPHERE_ELEMENTS
public static final int DEFAULT_MICROSPHERE_ELEMENTSDeprecated.Default number of surface elements that composes the microsphere.- See Also:
-
DEFAULT_BRIGHTNESS_EXPONENT
public static final int DEFAULT_BRIGHTNESS_EXPONENTDeprecated.Default exponent used the weights calculation.- See Also:
-
microsphereElements
private final int microsphereElementsDeprecated.Number of surface elements of the microsphere. -
brightnessExponent
private final int brightnessExponentDeprecated.Exponent used in the power law that computes the weights of the sample data.
-
-
Constructor Details
-
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 Details
-
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
.
-
InterpolatingMicrosphere
andMicrosphereProjectionInterpolator
instead.