userinterface.gui
Class GuiLinReg

java.lang.Object
  extended by userinterface.gui.GuiLinReg

public class GuiLinReg
extends java.lang.Object

'Interface' which connects GUI and methods for linear regression

Author:
Stefanie Kaufmann

Field Summary
 boolean done
           
static java.lang.String MEDIAN
           
static java.lang.String STANDARD
           
 
Constructor Summary
GuiLinReg()
           
 
Method Summary
 void calcLR()
          Creates LR object and performs linear regression
 CorrectionFactors getCF()
          Returns the correction factors
 LinearRegression getLR()
          Returns the linear regression Object
 int getRatioMethod()
          Returns the method for ratio calculation
 boolean hasLR()
          Checks whether linear regression has been performed
 void setData(Data data)
          Sets the data object for normalization
 void setMethod(java.lang.String method)
          Sets the name of the normalization method
 void setRatioMethod(int method)
          Changes the method used for ratio calculation
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

STANDARD

public static final java.lang.String STANDARD
See Also:
Constant Field Values

MEDIAN

public static final java.lang.String MEDIAN
See Also:
Constant Field Values

done

public boolean done
Constructor Detail

GuiLinReg

public GuiLinReg()
Method Detail

calcLR

public void calcLR()
Creates LR object and performs linear regression


setRatioMethod

public void setRatioMethod(int method)
Changes the method used for ratio calculation

Parameters:
method - The method to be used for ratio calculation

setData

public void setData(Data data)
Sets the data object for normalization

Parameters:
data - Data object for normalization

setMethod

public void setMethod(java.lang.String method)
Sets the name of the normalization method

Parameters:
method - Name of the regression method

getLR

public LinearRegression getLR()
Returns the linear regression Object

Returns:
The linear regression object

getCF

public CorrectionFactors getCF()
Returns the correction factors

Returns:
The correction factors

getRatioMethod

public int getRatioMethod()
Returns the method for ratio calculation

Returns:
The ratio calculation method

hasLR

public boolean hasLR()
Checks whether linear regression has been performed

Returns:
True if linear regression was done