public class HistogramSeriesCollection extends SSJXYSeriesCollection
| Constructor and Description |
|---|
HistogramSeriesCollection()
Creates a new HistogramSeriesCollection instance with empty dataset.
|
HistogramSeriesCollection(CustomHistogramDataset data)
Creates a new HistogramSeriesCollection instance.
|
HistogramSeriesCollection(double[]... data)
Creates a new HistogramSeriesCollection instance with given data series.
|
HistogramSeriesCollection(double[] data,
int numPoints)
Creates a new HistogramSeriesCollection instance with the given data
series data.
|
HistogramSeriesCollection(DoubleArrayList... data)
Creates a new HistogramSeriesCollection.
|
| Modifier and Type | Method and Description |
|---|---|
int |
add(double[] data)
Adds a data series into the series collection.
|
int |
add(double[] data,
int numPoints)
Adds a data series into the series collection.
|
int |
add(DoubleArrayList observationSet)
Adds a data series into the series collection.
|
java.util.List |
getBins(int series)
Returns the bins for a series.
|
boolean |
getFilled(int series)
Returns the filled flag associated with the series-th
data series.
|
double |
getMargin()
Returns the margin which is a percentage amount by which the bars are trimmed.
|
double |
getOutlineWidth(int series)
Returns the outline width in pt.
|
CustomHistogramDataset |
getSeriesCollection()
Returns the CustomHistogramDataset object associated with the current variable.
|
double[] |
getValues(int series)
Returns the values for a series.
|
java.util.List |
getValuesList(int series)
Returns the values for a series.
|
void |
setBins(int series,
HistogramBin[] binsTable)
Links bins given by table binsTable to a series.
|
void |
setBins(int series,
int bins)
Sets bins periodic bins from the observation minimum values to the observation maximum value for a series.
|
void |
setBins(int series,
int bins,
double minimum,
double maximum)
Sets bins periodic bins from minimum to maximum for a series.
|
void |
setFilled(int series,
boolean filled)
Sets the filled flag.
|
void |
setMargin(double margin)
Sets the margin which is a percentage amount by which the bars are trimmed for all series.
|
void |
setOutlineWidth(int series,
double outline)
Sets the outline width in pt.
|
void |
setValues(int series,
double[] values)
Sets a new values set to a series from a table.
|
void |
setValues(int series,
java.util.List valuesList)
Sets a new values set to a series from a List variable.
|
java.lang.String |
toLatex(double XScale,
double YScale,
double XShift,
double YShift,
double xmin,
double xmax,
double ymin,
double ymax)
Formats and returns a string containing a LATEX-compatible source
code which represents this data series collection.
|
getColor, getDomainBounds, getRangeBounds, getRenderer, getX, getY, setColor, setRenderer, toStringpublic HistogramSeriesCollection()
public HistogramSeriesCollection(double[]... data)
setBins).
Each input parameter represents a data series.data - series of point sets.public HistogramSeriesCollection(double[] data,
int numPoints)
setBins).
Only the first numPoints of data will be taken into account.data - Point setnumPoints - Number of points to plotpublic HistogramSeriesCollection(DoubleArrayList... data)
setBins).
The input parameter represents a set of data plots. Each
DoubleArrayList variable corresponds
to a histogram on the chart.data - series of observation sets.public HistogramSeriesCollection(CustomHistogramDataset data)
data - series of point sets.public int add(double[] data)
data - new series.public int add(double[] data,
int numPoints)
data - new series.numPoints - Number of points to addpublic int add(DoubleArrayList observationSet)
observationSet - new series values.public CustomHistogramDataset getSeriesCollection()
getSeriesCollection in class SSJXYSeriesCollectionpublic java.util.List getBins(int series)
series - the series index (in the range 0 to getSeriesCount() - 1).public void setBins(int series,
int bins)
series - the series index (in the range 0 to getSeriesCount() - 1).bins - the number of periodic bins.
IndexOutOfBoundsExceptionif series is outside the specified range.public void setBins(int series,
int bins,
double minimum,
double maximum)
series - the series index (in the range 0 to getSeriesCount() - 1).bins - the number of periodic bins.minimum - minimum value.maximum - maximum value.
IndexOutOfBoundsExceptionif series is outside the specified range.public void setBins(int series,
HistogramBin[] binsTable)
series - the series index (in the range 0 to getSeriesCount() - 1).binsTable - new bins table.
IndexOutOfBoundsExceptionif series is outside the specified range.public java.util.List getValuesList(int series)
series - the series index (in the range 0 to getSeriesCount() - 1).public double[] getValues(int series)
series - the series index (in the range 0 to getSeriesCount() - 1).public void setValues(int series,
java.util.List valuesList)
series - the series index (in the range 0 to getSeriesCount() - 1).valuesList - new values list.public void setValues(int series,
double[] values)
series - the series index (in the range 0 to getSeriesCount() - 1).values - new values table.public boolean getFilled(int series)
series - series index.public void setFilled(int series,
boolean filled)
series - series index.filled - fill flag.public double getMargin()
public void setMargin(double margin)
margin - margin percentage amount.public double getOutlineWidth(int series)
series - series index.public void setOutlineWidth(int series,
double outline)
series - series index.outline - outline width.public java.lang.String toLatex(double XScale,
double YScale,
double XShift,
double YShift,
double xmin,
double xmax,
double ymin,
double ymax)
SSJXYSeriesCollectiontoLatex in class SSJXYSeriesCollectionXScale - Domain original data scale.YScale - Range original data scale.XShift - Domain original data shift value.YShift - Range original data shift value.xmin - Domain min bound.xmax - Domain nax bound.ymin - Range min bound.ymax - Range nax bound.To submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.