Top Description Fields Constructors Methods
org.apache.commons.math3.analysis.interpolation

public Class InterpolatingMicrosphere2D

extends InterpolatingMicrosphere
Class Inheritance
Imports
org.apache.commons.math3.util.FastMath, .MathUtils

Utility class for the MicrosphereProjectionInterpolator algorithm. For 2D interpolation, this class constructs the microsphere as a series of evenly spaced facets (rather than generating random normals as in the base implementation).
Since
3.6

Field Summary

Modifier and TypeField and Description
private static final int
DIMENSION

Space dimension.

Constructor Summary

AccessConstructor and Description
public
InterpolatingMicrosphere2D(int
Number of surface elements of the sphere.
size
,
double
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.
maxDarkFraction
,
double
Value of the illumination below which a facet is considered dark.
darkThreshold
,
double
Value returned when the maxDarkFraction threshold is exceeded.
background
)

Create a sphere from vectors regularly sampled around a circle.

protected
InterpolatingMicrosphere2D(InterpolatingMicrosphere2D
Instance to copy.
other
)

Copy constructor.

Method Summary

Modifier and TypeMethod and Description
public InterpolatingMicrosphere2D

Returns:

a copy of this instance.
copy
()

Overrides org.apache.commons.math3.analysis.interpolation.InterpolatingMicrosphere.copy.

Perform a copy.

Inherited from org.apache.commons.math3.analysis.interpolation.InterpolatingMicrosphere:
addgetDimensiongetSizevalue

Field Detail

DIMENSIONback to summary
private static final int DIMENSION

Space dimension.

Constructor Detail

InterpolatingMicrosphere2Dback to summary
public InterpolatingMicrosphere2D(int size, double maxDarkFraction, double darkThreshold, double background)

Create a sphere from vectors regularly sampled around a circle.

Parameters
size:int

Number of surface elements of the sphere.

maxDarkFraction:double

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:double

Value of the illumination below which a facet is considered dark.

background:double

Value returned when the maxDarkFraction threshold is exceeded.

Exceptions
NotStrictlyPositiveException:
if size <= 0.
NotPositiveException:
if darkThreshold < 0.
OutOfRangeException:
if maxDarkFraction does not belong to the interval [0, 1].
InterpolatingMicrosphere2Dback to summary
protected InterpolatingMicrosphere2D(InterpolatingMicrosphere2D other)

Copy constructor.

Parameters
other:InterpolatingMicrosphere2D

Instance to copy.

Method Detail

copyback to summary
public InterpolatingMicrosphere2D copy()

Overrides org.apache.commons.math3.analysis.interpolation.InterpolatingMicrosphere.copy.

Perform a copy.

Returns:InterpolatingMicrosphere2D

a copy of this instance.

Annotations
@Override