public class MicrosphereProjectionInterpolator extends Object implements MultivariateInterpolator
| Constructor and Description | 
|---|
| MicrosphereProjectionInterpolator(InterpolatingMicrosphere microsphere,
                                 double exponent,
                                 boolean sharedSphere,
                                 double noInterpolationTolerance)Create a microsphere interpolator. | 
| MicrosphereProjectionInterpolator(int dimension,
                                 int elements,
                                 double maxDarkFraction,
                                 double darkThreshold,
                                 double background,
                                 double exponent,
                                 boolean sharedSphere,
                                 double noInterpolationTolerance)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 MicrosphereProjectionInterpolator(int dimension,
                                         int elements,
                                         double maxDarkFraction,
                                         double darkThreshold,
                                         double background,
                                         double exponent,
                                         boolean sharedSphere,
                                         double noInterpolationTolerance)
dimension - Space dimension.elements - Number of surface elements of the microsphere.exponent - Exponent used in the power law that computes themaxDarkFraction - Maximum fraction of the facets that can be dark.
 If the fraction of "non-illuminated" facets is larger, no estimation
 of the value will be performed, and the background value will
 be returned instead.darkThreshold - Value of the illumination below which a facet is
 considered dark.background - Value returned when the maxDarkFraction
 threshold is exceeded.sharedSphere - Whether the sphere can be shared among the
 interpolating function instances.  If true, the instances
 will share the same data, and thus will not be thread-safe.noInterpolationTolerance - When the distance between an
 interpolated point and one of the sample points is less than this
 value, no interpolation will be performed (the value of the sample
 will be returned).MathIllegalArgumentException - if dimension <= 0 or elements <= 0.MathIllegalArgumentException - if exponent < 0.MathIllegalArgumentException - if darkThreshold < 0.MathIllegalArgumentException - if
 maxDarkFraction does not belong to the interval [0, 1].public MicrosphereProjectionInterpolator(InterpolatingMicrosphere microsphere, double exponent, boolean sharedSphere, double noInterpolationTolerance) throws MathIllegalArgumentException
microsphere - Microsphere.exponent - Exponent used in the power law that computes the
 weights (distance dimming factor) of the sample data.sharedSphere - Whether the sphere can be shared among the
 interpolating function instances.  If true, the instances
 will share the same data, and thus will not be thread-safe.noInterpolationTolerance - When the distance between an
 interpolated point and one of the sample points is less than this
 value, no interpolation will be performed (the value of the sample
 will be returned).MathIllegalArgumentException - if exponent < 0.public MultivariateFunction interpolate(double[][] xval, double[] yval) throws MathIllegalArgumentException, NullArgumentException
interpolate in interface MultivariateInterpolatorxval - 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 pointsMathIllegalArgumentException - if the space dimension of the
 given samples does not match the space dimension of the microsphere.NullArgumentException - if the arguments are null.Copyright © 2016–2020 Hipparchus.org. All rights reserved.