public class Histogram extends Object implements Plottable
Modifier and Type | Field and Description |
---|---|
protected RealArray[] |
datasets
The datasets.
|
protected DataStyle[] |
dataStyles
The
DataStyle s. |
protected String[] |
dataTitles
The data titles.
|
protected double[] |
xrange
The
x range. |
protected double[] |
yrange
The
y range. |
Constructor and Description |
---|
Histogram(double min,
double max,
int nBins,
double[]... valuesArray)
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
double[] |
getAxisRange(Plot.AxisType axisType)
Gets the axis range.
|
String |
getAxisTitle(Plot.AxisType axisType)
Gets the axis title.
|
RealArray[] |
getDatasets()
Gets the datasets.
|
DataStyle[] |
getDataStyles()
Gets the
DataStyle s. |
String[] |
getDataTitles()
Gets the data titles.
|
String |
getTitle()
Gets the title.
|
boolean |
isPropertyEnabled(String property)
Gets whether the given property is enabled.
|
protected final RealArray[] datasets
protected final String[] dataTitles
protected final double[] xrange
x
range.protected final double[] yrange
y
range.public Histogram(double min, double max, int nBins, double[]... valuesArray)
min
- the range minimum.max
- the range maximum.nBins
- the number of bins.valuesArray
- the array of values.public RealArray[] getDatasets()
Plottable
getDatasets
in interface Plottable
public String[] getDataTitles()
Plottable
getDataTitles
in interface Plottable
public DataStyle[] getDataStyles()
Plottable
DataStyle
s.getDataStyles
in interface Plottable
public boolean isPropertyEnabled(String property)
Plottable
isPropertyEnabled
in interface Plottable
property
- the given property.true
if and only if the given property is enabled.public double[] getAxisRange(Plot.AxisType axisType)
Plottable
getAxisRange
in interface Plottable
axisType
- the Plot.AxisType
.public String getAxisTitle(Plot.AxisType axisType)
Plottable
getAxisTitle
in interface Plottable
axisType
- the Plot.AxisType
.