public class Histogram3D extends Plot
| Constructor and Description |
|---|
Histogram3D(double[][] data,
int xbins,
int ybins,
boolean prob,
java.awt.Color[] palette)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
double[] |
getLowerBound()
Returns the lower bound of data.
|
double[] |
getUpperBound()
Returns the upper bound of data.
|
static Histogram3D |
of(double[][] data)
Creates a 3D histogram plot.
|
static Histogram3D |
of(double[][] data,
int nbins,
boolean prob)
Creates a 3D histogram plot.
|
static Histogram3D |
of(double[][] data,
int nbins,
boolean prob,
java.awt.Color[] palette)
Creates a 3D histogram plot.
|
static Histogram3D |
of(double[][] data,
int nbins,
java.awt.Color[] palette)
Creates a 3D histogram plot.
|
void |
paint(Graphics g)
Draws the shape.
|
public Histogram3D(double[][] data,
int xbins,
int ybins,
boolean prob,
java.awt.Color[] palette)
data - a sample set.xbins - the number of bins on x-axis.ybins - the number of bins on y-axis.prob - if true, the z-axis will be in the probability scale.
Otherwise, z-axis will be in the frequency scale.palette - the color palette.public double[] getLowerBound()
PlotgetLowerBound in class Plotpublic double[] getUpperBound()
PlotgetUpperBound in class Plotpublic static Histogram3D of(double[][] data)
data - a sample set.public static Histogram3D of(double[][] data, int nbins, java.awt.Color[] palette)
data - a sample set.nbins - the number of bins.palette - the color palette.public static Histogram3D of(double[][] data, int nbins, boolean prob)
data - a sample set.nbins - the number of bins.prob - if true, the z-axis will be in the probability scale.
Otherwise, z-axis will be in the frequency scale.public static Histogram3D of(double[][] data, int nbins, boolean prob, java.awt.Color[] palette)
data - a sample set.nbins - the number of bins.prob - if true, the z-axis will be in the probability scale.
Otherwise, z-axis will be in the frequency scale.palette - the color palette.