Class MicrosphereInterpolatingFunction
java.lang.Object
org.apache.commons.math3.analysis.interpolation.MicrosphereInterpolatingFunction
- All Implemented Interfaces:
MultivariateFunction
@Deprecated
public class MicrosphereInterpolatingFunction
extends Object
implements MultivariateFunction
Deprecated.
Interpolating function that implements the
Microsphere Projection.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static class
Deprecated.Class for storing the accounting data needed to perform the microsphere projection. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final double
Deprecated.Exponent used in the power law that computes the weights of the sample data.private final int
Deprecated.Space dimension.private final List
<MicrosphereInterpolatingFunction.MicrosphereSurfaceElement> Deprecated.Internal accounting data for the interpolation algorithm.private final Map
<RealVector, Double> Deprecated.Sample data. -
Constructor Summary
ConstructorsConstructorDescriptionMicrosphereInterpolatingFunction
(double[][] xval, double[] yval, int brightnessExponent, int microsphereElements, UnitSphereRandomVectorGenerator rand) Deprecated. -
Method Summary
Modifier and TypeMethodDescriptionprivate double
cosAngle
(RealVector v, RealVector w) Deprecated.Compute the cosine of the angle between 2 vectors.double
value
(double[] point) Deprecated.Compute the value for the function at the given point.
-
Field Details
-
dimension
private final int dimensionDeprecated.Space dimension. -
microsphere
Deprecated.Internal accounting data for the interpolation algorithm. Each element of the list corresponds to one surface element of the microsphere. -
brightnessExponent
private final double brightnessExponentDeprecated.Exponent used in the power law that computes the weights of the sample data. -
samples
Deprecated.Sample data.
-
-
Constructor Details
-
MicrosphereInterpolatingFunction
public MicrosphereInterpolatingFunction(double[][] xval, double[] yval, int brightnessExponent, int microsphereElements, UnitSphereRandomVectorGenerator rand) throws DimensionMismatchException, NoDataException, NullArgumentException Deprecated.- Parameters:
xval
- 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
- Values for the interpolation points.brightnessExponent
- 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 an array has zero-length.NullArgumentException
- if an argument isnull
.
-
-
Method Details
-
value
Deprecated.Description copied from interface:MultivariateFunction
Compute the value for the function at the given point.- Specified by:
value
in interfaceMultivariateFunction
- Parameters:
point
- Interpolation point.- Returns:
- the interpolated value.
- Throws:
DimensionMismatchException
- if point dimension does not math sample
-
cosAngle
Deprecated.Compute the cosine of the angle between 2 vectors.- Parameters:
v
- Vector.w
- Vector.- Returns:
- the cosine of the angle between
v
andw
.
-
InterpolatingMicrosphere
andMicrosphereProjectionInterpolator
instead.