halo.userinterface.cmdline
Class CmdNormalization

java.lang.Object
  extended by halo.userinterface.cmdline.CmdNormalization

public class CmdNormalization
extends java.lang.Object

Serves as interface between command line input and tools for calculation of linear regression

Author:
Stefanie Kaufmann

Field Summary
static java.lang.String STANDARD
           
 
Constructor Summary
CmdNormalization()
           
 
Method Summary
static void extractFlags(java.lang.String[] input)
          Translates the flags of the options array into values for the variables used for calculation
static Data getData(java.lang.String[] input)
          Uses the complete options array to split it and forward the necessary information to the interface for data manipulation
static boolean isValid()
          checks whether all essential variables have been set
static void main(java.lang.String[] args)
          Contains all necessary methods to calculate normalization from an options array
static CorrectionFactors prepareNormalization(Data data)
          Contains all the methods for calculation of normalization
static java.lang.String[] split(java.lang.String[] input)
          Splits the options array into one array that provides input for the data manipulation and one array that provides needed input for calculation of normalization
 
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
Constructor Detail

CmdNormalization

public CmdNormalization()
Method Detail

isValid

public static boolean isValid()
checks whether all essential variables have been set

Returns:
true if the options are valid, false otherwise

split

public static java.lang.String[] split(java.lang.String[] input)
Splits the options array into one array that provides input for the data manipulation and one array that provides needed input for calculation of normalization

Parameters:
input - complete options array
Returns:
options array needed for data manipulation

extractFlags

public static void extractFlags(java.lang.String[] input)
Translates the flags of the options array into values for the variables used for calculation

Parameters:
input - options array containing only the important information

prepareNormalization

public static CorrectionFactors prepareNormalization(Data data)
Contains all the methods for calculation of normalization

Parameters:
data - A data object for which the calculation should be done
Returns:
The Correction Factors returned from the normalization

getData

public static Data getData(java.lang.String[] input)
                    throws InvalidFlagException
Uses the complete options array to split it and forward the necessary information to the interface for data manipulation

Parameters:
input - The complete options array
Returns:
The Data object received from data manipulation
Throws:
InvalidFlagException

main

public static void main(java.lang.String[] args)
Contains all necessary methods to calculate normalization from an options array

Parameters:
args - The options array