uk.ac.leeds.ccg.andyt.projects.moses.process
Class RegressionReport

java.lang.Object
  extended by uk.ac.leeds.ccg.andyt.projects.moses.io.WebContentHandler
      extended by uk.ac.leeds.ccg.andyt.projects.moses.process.RegressionReport
Direct Known Subclasses:
Comparison, RegressionReport_1, RegressionReport_2, RegressionReport_UK1

public abstract class RegressionReport
extends WebContentHandler

A class for generating maps comparing CAS data with IndividualCensus outputs in the form of regression plots.


Constructor Summary
RegressionReport()
           
 
Method Summary
static org.jfree.chart.JFreeChart[] createRegressionCharts(org.jfree.chart.JFreeChart[] t_ScatterPlots, java.lang.Object[] t_RegressionParametersAndXYLineCharts)
           
static org.jfree.chart.JFreeChart[] createScatterPlots(java.lang.String[] a_Variables, double[][] a_SARExpectedData, double[][] a_CASObservedData, java.lang.String xAxisLabel, java.lang.String yAxisLabel)
           
static java.lang.Object[] getRegressionParametersAndCreateXYLineCharts(java.lang.String[] variablesNames_StringArray, double[][] aggregatedSARData, double[][] comparisonCASData)
           
static org.jfree.chart.JFreeChart getYEqualsXLineChart(double[][] data, java.lang.String xAxisLabel_String, java.lang.String yAxisLabel_String)
           
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 SAR data[1][] = expected CAS
 
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
 

Constructor Detail

RegressionReport

public RegressionReport()
Method Detail

createRegressionCharts

public static org.jfree.chart.JFreeChart[] createRegressionCharts(org.jfree.chart.JFreeChart[] t_ScatterPlots,
                                                                  java.lang.Object[] t_RegressionParametersAndXYLineCharts)
                                                           throws java.io.IOException
Throws:
java.io.IOException

getYEqualsXLineChart

public static org.jfree.chart.JFreeChart getYEqualsXLineChart(double[][] data,
                                                              java.lang.String xAxisLabel_String,
                                                              java.lang.String yAxisLabel_String)

getRegressionParametersAndCreateXYLineCharts

public static java.lang.Object[] getRegressionParametersAndCreateXYLineCharts(java.lang.String[] variablesNames_StringArray,
                                                                              double[][] aggregatedSARData,
                                                                              double[][] comparisonCASData)
                                                                       throws java.io.IOException
Parameters:
variablesNames_StringArray -
aggregatedSARData -
comparisonCASData -
Returns:
Throws:
java.io.IOException

createScatterPlots

public static org.jfree.chart.JFreeChart[] createScatterPlots(java.lang.String[] a_Variables,
                                                              double[][] a_SARExpectedData,
                                                              double[][] a_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 SAR data[1][] = expected CAS


printOLSRegression

public static double[] printOLSRegression(double[][] data)
data[0][] = observed data[1][] = expected