Class MicrosphereInterpolatingFunction
- java.lang.Object
-
- org.apache.commons.math3.analysis.interpolation.MicrosphereInterpolatingFunction
-
- All Implemented Interfaces:
MultivariateFunction
@Deprecated public class MicrosphereInterpolatingFunction extends java.lang.Object implements MultivariateFunction
Deprecated.Code will be removed in 4.0. UseInterpolatingMicrosphereandMicrosphereProjectionInterpolatorinstead.Interpolating function that implements the Microsphere Projection.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classMicrosphereInterpolatingFunction.MicrosphereSurfaceElementDeprecated.Class for storing the accounting data needed to perform the microsphere projection.
-
Field Summary
Fields Modifier and Type Field Description private doublebrightnessExponentDeprecated.Exponent used in the power law that computes the weights of the sample data.private intdimensionDeprecated.Space dimension.private java.util.List<MicrosphereInterpolatingFunction.MicrosphereSurfaceElement>microsphereDeprecated.Internal accounting data for the interpolation algorithm.private java.util.Map<RealVector,java.lang.Double>samplesDeprecated.Sample data.
-
Constructor Summary
Constructors Constructor Description MicrosphereInterpolatingFunction(double[][] xval, double[] yval, int brightnessExponent, int microsphereElements, UnitSphereRandomVectorGenerator rand)Deprecated.
-
Method Summary
All Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description private doublecosAngle(RealVector v, RealVector w)Deprecated.Compute the cosine of the angle between 2 vectors.doublevalue(double[] point)Deprecated.Compute the value for the function at the given point.
-
-
-
Field Detail
-
dimension
private final int dimension
Deprecated.Space dimension.
-
microsphere
private final java.util.List<MicrosphereInterpolatingFunction.MicrosphereSurfaceElement> 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 brightnessExponent
Deprecated.Exponent used in the power law that computes the weights of the sample data.
-
samples
private final java.util.Map<RealVector,java.lang.Double> samples
Deprecated.Sample data.
-
-
Constructor Detail
-
MicrosphereInterpolatingFunction
public MicrosphereInterpolatingFunction(double[][] xval, double[] yval, int brightnessExponent, int microsphereElements, UnitSphereRandomVectorGenerator rand) throws DimensionMismatchException, NoDataException, NullArgumentExceptionDeprecated.- 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 (wheredimensionis 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 ofyvalandxval(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 Detail
-
value
public double value(double[] point) throws DimensionMismatchExceptionDeprecated.Description copied from interface:MultivariateFunctionCompute the value for the function at the given point.- Specified by:
valuein interfaceMultivariateFunction- Parameters:
point- Interpolation point.- Returns:
- the interpolated value.
- Throws:
DimensionMismatchException- if point dimension does not math sample
-
cosAngle
private double cosAngle(RealVector v, RealVector w)
Deprecated.Compute the cosine of the angle between 2 vectors.- Parameters:
v- Vector.w- Vector.- Returns:
- the cosine of the angle between
vandw.
-
-