cmdline
Class CmdFilterData

java.lang.Object
  extended by cmdline.CmdFilterData

public class CmdFilterData
extends java.lang.Object

Serves as interface between Data manipulation tools and command line input

Author:
Stefanie Kaufmann

Constructor Summary
CmdFilterData()
           
 
Method Summary
static void extractFlags(java.lang.String[] input)
          Takes the input options and sets all necessary variables accordingly
static boolean isValid()
          Checks whether all needed values are set
static void main(java.lang.String[] args)
          Main method which calls all necessary methods to get from a given options array to a finished output file
static LinearRegression performLR(Data data)
          Performs linear regression on a given Data object with the previously specified method
static Data prepareData(java.lang.String[] input)
          Creates a data object from the information given as options array
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CmdFilterData

public CmdFilterData()
Method Detail

isValid

public static boolean isValid()
Checks whether all needed values are set

Returns:
true if every essential flag was used in the input, false otherwise

extractFlags

public static void extractFlags(java.lang.String[] input)
                         throws InvalidFlagException
Takes the input options and sets all necessary variables accordingly

Parameters:
input -
Throws:
InvalidFlagException

prepareData

public static Data prepareData(java.lang.String[] input)
                        throws InvalidFlagException
Creates a data object from the information given as options array

Parameters:
input -
Returns:
The created Data object
Throws:
InvalidFlagException

performLR

public static LinearRegression performLR(Data data)
Performs linear regression on a given Data object with the previously specified method

Parameters:
data -
Returns:
The linear regression object

main

public static void main(java.lang.String[] args)
Main method which calls all necessary methods to get from a given options array to a finished output file

Parameters:
args -