Class MicrosphereInterpolatingFunction.MicrosphereSurfaceElement
java.lang.Object
org.apache.commons.math3.analysis.interpolation.MicrosphereInterpolatingFunction.MicrosphereSurfaceElement
- Enclosing class:
MicrosphereInterpolatingFunction
Class for storing the accounting data needed to perform the
microsphere projection.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate doubleIllumination received from the brightest sample.private Map.Entry<RealVector, Double> Brightest sample.private final RealVectorNormal vector characterizing a surface element. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription(package private) doubleGet the illumination of the element.(package private) RealVectornormal()Return the normal vector.(package private) voidreset()Reset "illumination" and "sampleIndex".(package private) Map.Entry<RealVector, Double> sample()Get the sample illuminating the element the most.(package private) voidstore(double illuminationFromSample, Map.Entry<RealVector, Double> sample) Store the illumination and index of the brightest sample.
-
Field Details
-
normal
Normal vector characterizing a surface element. -
brightestIllumination
private double brightestIlluminationIllumination received from the brightest sample. -
brightestSample
Brightest sample.
-
-
Constructor Details
-
MicrosphereSurfaceElement
MicrosphereSurfaceElement(double[] n) - Parameters:
n- Normal vector characterizing a surface element of the microsphere.
-
-
Method Details
-
normal
-
reset
void reset()Reset "illumination" and "sampleIndex". -
store
Store the illumination and index of the brightest sample.- Parameters:
illuminationFromSample- illumination received from samplesample- current sample illuminating the element
-
illumination
double illumination()Get the illumination of the element.- Returns:
- the illumination.
-
sample
Map.Entry<RealVector, Double> sample()Get the sample illuminating the element the most.- Returns:
- the sample.
-