Inheritance diagram for org.math.plot.plots.GaussianDensityLayerPlot:
Definition at line 16 of file GaussianDensityLayerPlot.java.
Public Member Functions | |
GaussianDensityLayerPlot (Plot p, int ax, double sigma) | |
GaussianDensityLayerPlot (Plot p, int ax, double[] sigma) | |
double | getQuantilesValue (int numCoord) |
int | getAxe () |
void | plot (AbstractDrawer draw, Color c) |
Override void | setData (double[][] d) |
Override double[][] | getData () |
Static Public Member Functions | |
static void | main (String[] args) |
Static Public Attributes | |
static int | WIDHT = 2 |
Package Attributes | |
int | axis |
Color | gradC_0sigma |
Color | gradC_1sigma |
Color | gradC_2sigma |
Color | gradC_3sigma |
double | constant_sigma = 0 |
double[] | sigma |
org.math.plot.plots.GaussianDensityLayerPlot.GaussianDensityLayerPlot | ( | Plot | p, | |
int | ax, | |||
double[] | sigma | |||
) |
Build a gauss quantile plot based on given plot. The quantile is drawn as a gaussian gradient from the base plot dots.
p | base plot | |
a | axis number of quantile : 0=X quantile, 1=Y quantile, 2=Z quantile | |
sigma | array of standard deviation values |
Definition at line 51 of file GaussianDensityLayerPlot.java.
References org.math.plot.plots.GaussianDensityLayerPlot.axis, org.math.plot.plots.Plot.getData(), and org.math.plot.plots.Plot.name.
00051 { 00052 super("Gauss quantile of " + p.name, p); 00053 if (sigma != null) 00054 Array.checkLength(sigma, p.getData().length); 00055 this.sigma = sigma; 00056 axis = ax; 00057 00058 if (sigma != null) { 00059 gausspdf_sigma = new float[sigma.length][4]; 00060 for (int i = 0; i < gausspdf_sigma.length; i++) { 00061 for (int j = 0; j < 4; j++) 00062 gausspdf_sigma[i][j] = (float) (/*1.0 / Math.sqrt(2 * Math.PI * sigma[i] * sigma[i]) */Math.exp(-(j * j) / (2.0 * sigma[i] * sigma[i]))); 00063 } 00064 } 00065 00066 }