halo.data.biascorrection
Class RLoessRegression

java.lang.Object
  extended by halo.data.biascorrection.LoessRegression
      extended by halo.data.biascorrection.RLoessRegression

public class RLoessRegression
extends LoessRegression

Performs a local approximating regression for a data file with R

Author:
Stefanie Kaufmann

Constructor Summary
RLoessRegression(java.lang.String path, java.lang.String input, java.lang.String[] spots)
          Constructs a new object for local approaximating regression with R
 
Method Summary
 java.util.HashMap<java.lang.String,java.lang.Double> calculateLoessRegression()
          Starts the calculation of the fitted values with R
 void readRResults()
          Reads the R output from the file and returns the fitted values
 void setFileName(java.lang.String fileName)
          Sets the file name of the script file
 void writeRScript()
          Writes an R script that starts the calculation and writes the output into a file
 
Methods inherited from class halo.data.biascorrection.LoessRegression
setInputFile
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

RLoessRegression

public RLoessRegression(java.lang.String path,
                        java.lang.String input,
                        java.lang.String[] spots)
Constructs a new object for local approaximating regression with R

Parameters:
path - The path of the local R installation
input - The name of the input file that holds the data
Method Detail

writeRScript

public void writeRScript()
Writes an R script that starts the calculation and writes the output into a file


readRResults

public void readRResults()
Reads the R output from the file and returns the fitted values


calculateLoessRegression

public java.util.HashMap<java.lang.String,java.lang.Double> calculateLoessRegression()
Starts the calculation of the fitted values with R

Specified by:
calculateLoessRegression in class LoessRegression
Returns:
The fitted values of the data

setFileName

public void setFileName(java.lang.String fileName)
Sets the file name of the script file

Parameters:
fileName - The name of the script file