public class Histogram
extends java.lang.Object
| Constructor and Description |
|---|
Histogram() |
| Modifier and Type | Method and Description |
|---|---|
static BarPlot |
of(double[] data)
Creates a histogram plot.
|
static BarPlot |
of(double[] data,
double[] breaks,
boolean prob)
Creates a histogram plot.
|
static BarPlot |
of(double[] data,
double[] breaks,
boolean prob,
java.awt.Color color)
Creates a histogram plot.
|
static BarPlot |
of(double[] data,
int k,
boolean prob)
Creates a histogram plot.
|
static BarPlot |
of(double[] data,
int k,
boolean prob,
java.awt.Color color)
Creates a histogram plot.
|
static BarPlot |
of(int[] data)
Creates a histogram plot.
|
static BarPlot |
of(int[] data,
double[] breaks,
boolean prob)
Creates a histogram plot.
|
static BarPlot |
of(int[] data,
double[] breaks,
boolean prob,
java.awt.Color color)
Creates a histogram plot.
|
static BarPlot |
of(int[] data,
int k,
boolean prob)
Creates a histogram plot.
|
static BarPlot |
of(int[] data,
int k,
boolean prob,
java.awt.Color color)
Creates a histogram plot.
|
public static BarPlot of(int[] data)
data - a sample set.public static BarPlot of(int[] data, int k, boolean prob)
data - a sample set.k - the number of bins.prob - if true, the y-axis will be in the probability scale.
Otherwise, y-axis will be in the frequency scale.public static BarPlot of(int[] data, int k, boolean prob, java.awt.Color color)
data - a sample set.k - the number of bins.prob - if true, the y-axis will be in the probability scale.
Otherwise, y-axis will be in the frequency scale.public static BarPlot of(int[] data, double[] breaks, boolean prob)
data - a sample set.breaks - an array of size k+1 giving the breakpoints between
histogram cells. Must be in ascending order.prob - if true, the y-axis will be in the probability scale.
Otherwise, y-axis will be in the frequency scale.public static BarPlot of(int[] data, double[] breaks, boolean prob, java.awt.Color color)
data - a sample set.breaks - an array of size k+1 giving the breakpoints between
histogram cells. Must be in ascending order.prob - if true, the y-axis will be in the probability scale.
Otherwise, y-axis will be in the frequency scale.public static BarPlot of(double[] data)
data - a sample set.public static BarPlot of(double[] data, int k, boolean prob)
data - a sample set.k - the number of bins.prob - if true, the y-axis will be in the probability scale.
Otherwise, y-axis will be in the frequency scale.public static BarPlot of(double[] data, int k, boolean prob, java.awt.Color color)
data - a sample set.k - the number of bins.prob - if true, the y-axis will be in the probability scale.
Otherwise, y-axis will be in the frequency scale.public static BarPlot of(double[] data, double[] breaks, boolean prob)
data - a sample set.breaks - an array of size k+1 giving the breakpoints between
histogram cells. Must be in ascending order.prob - if true, the y-axis will be in the probability scale.
Otherwise, y-axis will be in the frequency scale.public static BarPlot of(double[] data, double[] breaks, boolean prob, java.awt.Color color)
data - a sample set.breaks - an array of size k+1 giving the breakpoints between
histogram cells. Must be in ascending order.prob - if true, the y-axis will be in the probability scale.
Otherwise, y-axis will be in the frequency scale.