Deprecated
Code will be removed in 4.0. Use InterpolatingMicrosphere
and MicrosphereProjectionInterpolator instead.
| Modifier and Type | Class and Description |
|---|---|
| private static class | MicrosphereInterpolatingFunction.
Class for storing the accounting data needed to perform the microsphere projection. |
| Modifier and Type | Field and Description |
|---|---|
| private final double | brightnessExponent
Exponent used in the power law that computes the weights of the sample data. |
| private final int | dimension
Space dimension. |
| private final List | microsphere
Internal accounting data for the interpolation algorithm. |
| private final Map | samples
Sample data. |
| Access | Constructor and Description |
|---|---|
| public | MicrosphereInterpolatingFunction(double[][]
Arguments for the interpolation points.
xval, double[] xval[i][0] is the first component of interpolation point
i, xval[i][1] is the second component, and so on
until xval[i][d-1], the last component of that interpolation
point (where dimension is thus the dimension of the sampled
space).Values for the interpolation points. yval, int Brightness dimming factor. brightnessExponent, int Number of surface elements of the
microsphere. microsphereElements, UnitSphereRandomVectorGenerator Unit vector generator for creating the microsphere. rand)
|
| Modifier and Type | Method and Description |
|---|---|
| private double | Returns: the cosine of the angle betweenv and w.Vector. v, final RealVector Vector. w)Compute the cosine of the angle between 2 vectors. |
| public double | Returns: the interpolated value.Interpolation point. point)Implements org. Compute the value for the function at the given point. |
| brightnessExponent | back to summary |
|---|---|
| private final double brightnessExponent Exponent used in the power law that computes the weights of the sample data. | |
| dimension | back to summary |
|---|---|
| private final int dimension Space dimension. | |
| microsphere | back to summary |
|---|---|
| private final List<MicrosphereInterpolatingFunction. Internal accounting data for the interpolation algorithm. Each element of the list corresponds to one surface element of the microsphere. | |
| samples | back to summary |
|---|---|
| private final Map<RealVector, Double> samples Sample data. | |
| MicrosphereInterpolatingFunction | back to summary |
|---|---|
public MicrosphereInterpolatingFunction(double[][] xval, double[] yval, int brightnessExponent, int microsphereElements, UnitSphereRandomVectorGenerator rand) throws DimensionMismatchException, NoDataException, NullArgumentException
| |
| cosAngle | back to summary |
|---|---|
| private double cosAngle(final RealVector v, final RealVector w) Compute the cosine of the angle between 2 vectors.
| |
| value | back to summary |
|---|---|
| public double value(double[] point) throws DimensionMismatchException Implements org. Doc from org. Compute the value for the function at the given point.
| |
| Modifier and Type | Field and Description |
|---|---|
| private double | brightestIllumination
Illumination received from the brightest sample. |
| private Map. | brightestSample
Brightest sample. |
| private final RealVector | normal
Normal vector characterizing a surface element. |
| Access | Constructor and Description |
|---|---|
| pack-priv | MicrosphereSurfaceElement(double[]
Normal vector characterizing a surface element
of the microsphere. n)
|
| Modifier and Type | Method and Description |
|---|---|
| pack-priv double | |
| pack-priv RealVector | |
| pack-priv void | |
| pack-priv Map. | |
| pack-priv void | store(final double
illumination received from sample illuminationFromSample, final Map.current sample illuminating the element sampleStore the illumination and index of the brightest sample. |
| brightestIllumination | back to summary |
|---|---|
| private double brightestIllumination Illumination received from the brightest sample. | |
| brightestSample | back to summary |
|---|---|
| private Map. Brightest sample. | |
| normal | back to summary |
|---|---|
| private final RealVector normal Normal vector characterizing a surface element. | |
| MicrosphereSurfaceElement | back to summary |
|---|---|
pack-priv MicrosphereSurfaceElement(double[] n)
| |
| illumination | back to summary |
|---|---|
| pack-priv double illumination() Get the illumination of the element.
| |
| normal | back to summary |
|---|---|
| pack-priv RealVector normal() Return the normal vector.
| |
| reset | back to summary |
|---|---|
| pack-priv void reset() Reset "illumination" and "sampleIndex". | |
| sample | back to summary |
|---|---|
| pack-priv Map. Get the sample illuminating the element the most.
| |
| store | back to summary |
|---|---|
| pack-priv void store(final double illuminationFromSample, final Map. Store the illumination and index of the brightest sample.
| |