Class InterpolatingMicrosphere2D
- java.lang.Object
-
- org.hipparchus.analysis.interpolation.InterpolatingMicrosphere
-
- org.hipparchus.analysis.interpolation.InterpolatingMicrosphere2D
-
public class InterpolatingMicrosphere2D extends InterpolatingMicrosphere
Utility class for theMicrosphereProjectionInterpolator
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).
-
-
Constructor Summary
Constructors Modifier Constructor Description InterpolatingMicrosphere2D(int size, double maxDarkFraction, double darkThreshold, double background)
Create a sphere from vectors regularly sampled around a circle.protected
InterpolatingMicrosphere2D(InterpolatingMicrosphere2D other)
Copy constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description InterpolatingMicrosphere2D
copy()
Perform a copy.-
Methods inherited from class org.hipparchus.analysis.interpolation.InterpolatingMicrosphere
add, getDimension, getSize, value
-
-
-
-
Constructor Detail
-
InterpolatingMicrosphere2D
public InterpolatingMicrosphere2D(int size, double maxDarkFraction, double darkThreshold, double background)
Create a sphere from vectors regularly sampled around a circle.- Parameters:
size
- Number of surface elements of the sphere.maxDarkFraction
- 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 thebackground
value will be returned instead.darkThreshold
- Value of the illumination below which a facet is considered dark.background
- Value returned when themaxDarkFraction
threshold is exceeded.- Throws:
MathIllegalArgumentException
- ifsize <= 0
.MathIllegalArgumentException
- ifdarkThreshold < 0
.MathIllegalArgumentException
- ifmaxDarkFraction
does not belong to the interval[0, 1]
.
-
InterpolatingMicrosphere2D
protected InterpolatingMicrosphere2D(InterpolatingMicrosphere2D other)
Copy constructor.- Parameters:
other
- Instance to copy.
-
-
Method Detail
-
copy
public InterpolatingMicrosphere2D copy()
Perform a copy.- Overrides:
copy
in classInterpolatingMicrosphere
- Returns:
- a copy of this instance.
-
-