Class MicrosphereInterpolatingFunction

    • Field Detail

      • dimension

        private final int dimension
        Deprecated.
        Space dimension.
      • 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,
                                                NullArgumentException
        Deprecated.
        Parameters:
        xval - Arguments for the interpolation points. 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).
        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 of yval and xval (equal to n, the number of interpolation points) do not match, or the the arrays xval[0] ... xval[n], have lengths different from dimension.
        NoDataException - if there an array has zero-length.
        NullArgumentException - if an argument is null.
    • Method Detail

      • 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 v and w.