uk.ac.leeds.ccg.andyt.projects.moses.process
Class RegressionReport
java.lang.Object
uk.ac.leeds.ccg.andyt.projects.moses.io.WebContentHandler
uk.ac.leeds.ccg.andyt.projects.moses.process.RegressionReport
- Direct Known Subclasses:
- Comparison, RegressionReport_1, RegressionReport_2
public abstract class RegressionReport
- extends WebContentHandler
A class for generating maps comparing CAS data with IndividualCensus outputs
in the form of regression plots.
Method Summary |
static org.jfree.chart.JFreeChart[] |
createRegressionCharts(org.jfree.chart.JFreeChart[] _ScatterPlots,
java.lang.Object[] _RegressionParametersAndCreateXYLineCharts)
|
static org.jfree.chart.JFreeChart[] |
createScatterPlots(java.lang.String[] _Variables,
double[][] _SARExpectedData,
double[][] _CASObservedData,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel)
|
static java.lang.Object[] |
getRegressionParametersAndCreateXYLineCharts(java.lang.String[] _Variables,
double[][] _SARExpectedData,
double[][] _CASObservedData)
|
protected static java.lang.Object[] |
loadData(java.io.File _SARExpectedFile,
java.io.File _CASObservedFile)
|
static java.awt.image.BufferedImage[] |
outputImages(org.jfree.chart.JFreeChart[] tJFreeCharts,
int width,
int height,
java.lang.String directory,
java.lang.String outputImageFileNamePrefix,
java.lang.String type)
|
java.awt.image.BufferedImage[] |
outputImages(org.jfree.chart.JFreeChart[] tJFreeCharts,
java.lang.String[] _Variables,
int width,
int height,
java.lang.String _FilenamePrefix,
java.io.File _OutputDirectory,
java.lang.String type)
|
static double[] |
printOLSRegression(double[][] data)
data[0][] = observed data[1][] = expected |
static double[] |
printSimpleRegression(double[][] data)
data[0][] = observed data[1][] = expected |
Methods inherited from class uk.ac.leeds.ccg.andyt.projects.moses.io.WebContentHandler |
writeHTML, writeHTML, writeHTMLBody, writeHTMLBody, writeHTMLBodyFooter, writeHTMLBodyFooter, writeHTMLBodyMain, writeHTMLBodyMain, writeHTMLBodyStart, writeHTMLBodyStart, writeHTMLDTD, writeHTMLHead, writeHTMLHead |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
RegressionReport
public RegressionReport()
createRegressionCharts
public static org.jfree.chart.JFreeChart[] createRegressionCharts(org.jfree.chart.JFreeChart[] _ScatterPlots,
java.lang.Object[] _RegressionParametersAndCreateXYLineCharts)
throws java.io.IOException
- Throws:
java.io.IOException
getRegressionParametersAndCreateXYLineCharts
public static java.lang.Object[] getRegressionParametersAndCreateXYLineCharts(java.lang.String[] _Variables,
double[][] _SARExpectedData,
double[][] _CASObservedData)
throws java.io.IOException
- Throws:
java.io.IOException
createScatterPlots
public static org.jfree.chart.JFreeChart[] createScatterPlots(java.lang.String[] _Variables,
double[][] _SARExpectedData,
double[][] _CASObservedData,
java.lang.String xAxisLabel,
java.lang.String yAxisLabel)
throws java.io.IOException
- Throws:
java.io.IOException
outputImages
public static java.awt.image.BufferedImage[] outputImages(org.jfree.chart.JFreeChart[] tJFreeCharts,
int width,
int height,
java.lang.String directory,
java.lang.String outputImageFileNamePrefix,
java.lang.String type)
throws java.io.IOException
- Throws:
java.io.IOException
outputImages
public java.awt.image.BufferedImage[] outputImages(org.jfree.chart.JFreeChart[] tJFreeCharts,
java.lang.String[] _Variables,
int width,
int height,
java.lang.String _FilenamePrefix,
java.io.File _OutputDirectory,
java.lang.String type)
throws java.io.IOException
- Throws:
java.io.IOException
loadData
protected static java.lang.Object[] loadData(java.io.File _SARExpectedFile,
java.io.File _CASObservedFile)
throws java.io.IOException
- Throws:
java.io.IOException
printSimpleRegression
public static double[] printSimpleRegression(double[][] data)
- data[0][] = observed data[1][] = expected
printOLSRegression
public static double[] printOLSRegression(double[][] data)
- data[0][] = observed data[1][] = expected