public class MicrosphereInterpolator extends Object implements MultivariateInterpolator
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_BRIGHTNESS_EXPONENT
Default exponent used the weights calculation.
|
static int |
DEFAULT_MICROSPHERE_ELEMENTS
Default number of surface elements that composes the microsphere.
|
Constructor and Description |
---|
MicrosphereInterpolator()
Create a microsphere interpolator with default settings.
|
MicrosphereInterpolator(int elements,
int exponent)
Create a microsphere interpolator.
|
Modifier and Type | Method and Description |
---|---|
MultivariateFunction |
interpolate(double[][] xval,
double[] yval)
Computes an interpolating function for the data set.
|
public static final int DEFAULT_MICROSPHERE_ELEMENTS
public static final int DEFAULT_BRIGHTNESS_EXPONENT
public MicrosphereInterpolator()
MicrosphereInterpolator(MicrosphereInterpolator.DEFAULT_MICROSPHERE_ELEMENTS,
MicrosphereInterpolator.DEFAULT_BRIGHTNESS_EXPONENT)
.public MicrosphereInterpolator(int elements, int exponent)
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.NotPositiveException
- if exponent < 0
.NotStrictlyPositiveException
- if elements <= 0
.public MultivariateFunction interpolate(double[][] xval, double[] yval)
interpolate
in interface MultivariateInterpolator
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 pointsCopyright © 2023 CNES. All rights reserved.