|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.statcato.graph.GraphFactory
public class GraphFactory
Fumnctions for generating graphs.
org.jfree.chart
Field Summary | |
---|---|
static java.awt.Color[] |
COLORS
|
static int |
REG_CUBIC
Cubic regression |
static int |
REG_EXP
Exponential regression |
static int |
REG_FIXEDPOW
Fixed power regression |
static int |
REG_LIN
Linear regression |
static int |
REG_LOG
Logarithmic regression |
static int |
REG_NONE
No regression |
static int |
REG_POLY
Polynomial regression |
static int |
REG_POW
Power regression |
static int |
REG_QUAD
Quadratic regression |
Constructor Summary | |
---|---|
GraphFactory()
|
Method Summary | |
---|---|
static java.util.Vector<java.lang.Double> |
computeRegressionCoeff(java.util.Vector<java.lang.Double> xVector,
java.util.Vector<java.lang.Double> yVector,
int regressionType,
double regressionArg)
Computes the regression coefficients for the given vectors and regression type. |
static org.jfree.chart.JFreeChart |
createBarChart(java.lang.String title,
java.lang.String xTitle,
java.lang.String yTitle,
org.jfree.data.category.DefaultCategoryDataset dataset,
org.jfree.chart.plot.PlotOrientation orientation,
boolean hasLegend)
Creates a bar chart. |
static org.jfree.chart.JFreeChart |
createBoxPlot(org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset dataset,
java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
boolean showLegend,
boolean horizontal)
Creates a box plot. |
static org.jfree.chart.JFreeChart |
createHistogram(java.lang.String title,
java.lang.String xTitle,
java.lang.String yTitle,
org.jfree.data.statistics.HistogramDataset dataset,
boolean hasLegend,
org.jfree.chart.axis.TickUnits units,
double minBin,
double minBinStart,
boolean center,
double yTicks)
Creates a histogram. |
static org.jfree.chart.JFreeChart |
createNormalQuantilePlot(java.util.Vector<java.lang.Double> YColumnVector,
java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
boolean isDataOnXAxis,
boolean showRegressionLine)
Creates a normal quantile plot. |
static org.jfree.chart.JFreeChart |
createPieChart(java.lang.String title,
org.jfree.data.general.DefaultPieDataset data,
boolean hasLegend,
boolean hasLabel)
Creates a pie chart. |
static org.jfree.chart.JFreeChart |
createScatterplot(org.jfree.data.xy.XYSeriesCollection seriesCollection,
java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
boolean showLegend,
boolean showRegression,
double min,
double max)
Creates a scatterplot. |
static org.jfree.chart.JFreeChart |
createScatterplot(org.jfree.data.xy.XYSeriesCollection seriesCollection,
java.lang.String title,
java.lang.String xLabel,
java.lang.String yLabel,
boolean showLegend,
int regressionType,
double regressionArg,
double min,
double max)
Creates a scatterplot. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final int REG_NONE
public static final int REG_LIN
public static final int REG_QUAD
public static final int REG_CUBIC
public static final int REG_POLY
public static final int REG_LOG
public static final int REG_POW
public static final int REG_FIXEDPOW
public static final int REG_EXP
public static final java.awt.Color[] COLORS
Constructor Detail |
---|
public GraphFactory()
Method Detail |
---|
public static org.jfree.chart.JFreeChart createNormalQuantilePlot(java.util.Vector<java.lang.Double> YColumnVector, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, boolean isDataOnXAxis, boolean showRegressionLine)
YColumnVector
- vector of data valuestitle
- chart titlexLabel
- x axis labelyLabel
- y axis labelisDataOnXAxis
- whether the data is on the x axisshowRegressionLine
- whether the regression line should be shown
public static org.jfree.chart.JFreeChart createBoxPlot(org.jfree.data.statistics.DefaultBoxAndWhiskerCategoryDataset dataset, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, boolean showLegend, boolean horizontal)
dataset
- DefaultBoxAndWhisterCategoryDataset objecttitle
- plot titlexLabel
- x-axis labelyLabel
- y-axis labelshowLegend
- whether the legend should be shownhorizontal
- whether the plot is horizontal
public static org.jfree.chart.JFreeChart createScatterplot(org.jfree.data.xy.XYSeriesCollection seriesCollection, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, boolean showLegend, int regressionType, double regressionArg, double min, double max)
seriesCollection
- XYSeriesCollection containing the data seriestitle
- chart titlexLabel
- x-axis labelyLabel
- y-axis labelshowLegend
- whether the legend should be shownshowRegression
- whether a regression line should be shownregressionType
- type of regressionregressionArg
- regression argumentmin
- minimum x valuemax
- maximum x value
public static java.util.Vector<java.lang.Double> computeRegressionCoeff(java.util.Vector<java.lang.Double> xVector, java.util.Vector<java.lang.Double> yVector, int regressionType, double regressionArg)
xVector
- vector of x (independent)valuesyVector
- vector of y (dependent) valuesregressionType
- type of regressionregressionArg
- arguments for specific types of regression
public static org.jfree.chart.JFreeChart createScatterplot(org.jfree.data.xy.XYSeriesCollection seriesCollection, java.lang.String title, java.lang.String xLabel, java.lang.String yLabel, boolean showLegend, boolean showRegression, double min, double max)
seriesCollection
- XYSeriesCollection containing the data seriestitle
- chart titlexLabel
- x-axis labelyLabel
- y-axis labelshowLegend
- whether the legend should be shownshowRegression
- whether a regression line should be shownmin
- minimum x valuemax
- maximum x value
public static org.jfree.chart.JFreeChart createBarChart(java.lang.String title, java.lang.String xTitle, java.lang.String yTitle, org.jfree.data.category.DefaultCategoryDataset dataset, org.jfree.chart.plot.PlotOrientation orientation, boolean hasLegend)
title
- chart titlexTitle
- x-axis titleyTitle
- y-axis titledataset
- bar chart datasetorientation
- chart orientationhasLegend
- whether a legend is included
public static org.jfree.chart.JFreeChart createPieChart(java.lang.String title, org.jfree.data.general.DefaultPieDataset data, boolean hasLegend, boolean hasLabel)
title
- chart titledata
- pie chart datasethasLegend
- whether a legend is includedhasLabel
- whether labels for pie slices are included
public static org.jfree.chart.JFreeChart createHistogram(java.lang.String title, java.lang.String xTitle, java.lang.String yTitle, org.jfree.data.statistics.HistogramDataset dataset, boolean hasLegend, org.jfree.chart.axis.TickUnits units, double minBin, double minBinStart, boolean center, double yTicks)
title
- title of the histogramxTitle
- x-axis labelyTitle
- y-axis labeldataset
- HistogramDataset objecthasLegend
- whether a legend should be displayedunits
- tick units object of the x-axisminBin
- bin sizeminBinStart
- the start of the first bincenter
- whether the tick marks should be displayed in the middle of binsyTicks
- tick mark units of the x-axis
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |