Class MicrosphereInterpolatingFunction
- java.lang.Object
-
- org.apache.commons.math.analysis.interpolation.MicrosphereInterpolatingFunction
-
- All Implemented Interfaces:
MultivariateRealFunction
public class MicrosphereInterpolatingFunction extends java.lang.Object implements MultivariateRealFunction
Interpolating function that implements the Microsphere Projection.
-
-
Constructor Summary
Constructors Constructor Description MicrosphereInterpolatingFunction(double[][] xval, double[] yval, int brightnessExponent, int microsphereElements, UnitSphereRandomVectorGenerator rand)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
value(double[] point)
Compute the value for the function at the given point.
-
-
-
Constructor Detail
-
MicrosphereInterpolatingFunction
public MicrosphereInterpolatingFunction(double[][] xval, double[] yval, int brightnessExponent, int microsphereElements, UnitSphereRandomVectorGenerator rand) throws DimensionMismatchException, NoDataException
- 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 (wheredimension
is thus the dimension of the sampled space).yval
- the values for the interpolation pointsbrightnessExponent
- Brightness dimming factor.microsphereElements
- Number of surface elements of the microsphere.rand
- Unit vector generator for creating the microsphere.- Throws:
DimensionMismatchException
- if the lengths ofyval
andxval
(equal ton
, the number of interpolation points) do not match, or the the arraysxval[0]
...xval[n]
, have lengths different fromdimension
.NoDataException
- if there are no data (xval null or zero length)
-
-
Method Detail
-
value
public double value(double[] point)
Description copied from interface:MultivariateRealFunction
Compute the value for the function at the given point.- Specified by:
value
in interfaceMultivariateRealFunction
- Parameters:
point
- Interpolation point.- Returns:
- the interpolated value.
-
-