Class KernelDensityEstimation.RenderState

    • Field Detail

      • colors

        public Color[] colors
        the generated colors.
      • numBins

        public int numBins
        the number of bins.
      • bins

        public double[][] bins
        the bins.
      • startX

        public double[] startX
        the starting values for X bins.
      • startY

        public double[] startY
        the starting values for Y bins.
      • binMin

        public double binMin
        the smallest bin value.
      • binMax

        public double binMax
        the largest bin value.
      • xMin

        public double xMin
        the minimum x value.
      • xMax

        public double xMax
        the maximum x value.
      • yMin

        public double yMin
        the minimum x value.
      • yMax

        public double yMax
        the maximum x value.
      • xWidth

        public double xWidth
        the X bin width.
      • yWidth

        public double yWidth
        the Y bin width.
      • xRange

        public double xRange
        the X range.
      • yRange

        public double yRange
        the Y range.
      • additional

        public Map<String,​Object> additional
        for storing additional information.
    • Constructor Detail

      • RenderState

        public RenderState()
    • Method Detail

      • getDensity

        public double getDensity​(double x,
                                 double y)
        Returns the density for the data point.
        Parameters:
        x - the x coordinate
        y - the y coordinate
        Returns:
        the density
      • getIndex

        public int getIndex​(double x,
                            double y)
        Returns the color index for the data point.
        Parameters:
        x - the x coordinate
        y - the y coordinate
        Returns:
        the color
      • getColor

        public Color getColor​(double x,
                              double y)
        Returns the color to use for the data point.
        Parameters:
        x - the x coordinate
        y - the y coordinate
        Returns:
        the color