|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectadams.core.ConsoleObject
adams.core.option.AbstractOptionHandler
adams.data.baseline.AbstractBaselineCorrection<T>
adams.data.baseline.AbstractLinearRegressionBased<T>
T - the type of data to processpublic abstract class AbstractLinearRegressionBased<T extends DataContainer>
Abstract ancestor for linear regression based baseline correction schemes.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class adams.data.baseline.AbstractBaselineCorrection |
|---|
AbstractBaselineCorrection.BaselineCorrectionJob<T extends DataContainer> |
| Field Summary | |
|---|---|
protected boolean |
m_GenerateLine
whether to return the line as fake data or the corrected data. |
protected double |
m_Ridge
the ridge. |
| Fields inherited from class adams.core.option.AbstractOptionHandler |
|---|
m_DebugLevel, m_OptionManager |
| Constructor Summary | |
|---|---|
AbstractLinearRegressionBased()
|
|
| Method Summary | |
|---|---|
protected abstract T |
correctData(T data,
double[] coeff)
Corrects the data with the given coefficients. |
void |
defineOptions()
Adds options to the internal list of options. |
protected abstract T |
generateLine(T data,
double[] coeff)
Generates fake data for the plotting the line. |
String |
generateLineTipText()
Returns the tip text for this property. |
boolean |
getGenerateLine()
Returns whether to return the line as fake data or the corrected data. |
protected abstract weka.core.Instances |
getInstances(T data)
Returns a dataset containing the x and y values. |
double |
getRidge()
Returns the ridge parameter. |
String |
globalInfo()
Returns a string describing the object. |
protected T |
processData(T data)
Performs the actual correcting. |
String |
ridgeTipText()
Returns the tip text for this property. |
void |
setGenerateLine(boolean value)
Sets whether to return the line as fake data or the corrected data. |
void |
setRidge(double value)
Sets the ridge parameter. |
| Methods inherited from class adams.data.baseline.AbstractBaselineCorrection |
|---|
checkData, cleanUp, compareTo, correct, correct, correct, correct, correct, doCorrect, equals, forCommandLine, forName, getBaselineCorrections, reset, shallowCopy, shallowCopy |
| Methods inherited from class adams.core.option.AbstractOptionHandler |
|---|
cleanUpOptions, debug, debug, debugLevelTipText, destroy, finishInit, getDebugLevel, getOptionManager, initialize, isDebugOn, newOptionManager, setDebugLevel, toCommandLine, toString |
| Methods inherited from class adams.core.ConsoleObject |
|---|
getDebugging, getSystemErr, getSystemOut, sizeOf |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
protected double m_Ridge
protected boolean m_GenerateLine
| Constructor Detail |
|---|
public AbstractLinearRegressionBased()
| Method Detail |
|---|
public String globalInfo()
globalInfo in class AbstractOptionHandlerpublic void defineOptions()
defineOptions in interface OptionHandlerdefineOptions in class AbstractOptionHandlerpublic void setRidge(double value)
value - the ridgepublic double getRidge()
public String ridgeTipText()
public void setGenerateLine(boolean value)
value - true if debug output should be printedpublic boolean getGenerateLine()
public String generateLineTipText()
protected abstract weka.core.Instances getInstances(T data)
data - the original data
protected abstract T correctData(T data,
double[] coeff)
data - the original datacoeff - the coefficients to use for correcting the data,
the last element is the offset
protected abstract T generateLine(T data,
double[] coeff)
data - the original datacoeff - the coefficients to use for generating the line data,
the last element is the offset
protected T processData(T data)
processData in class AbstractBaselineCorrection<T extends DataContainer>data - the data to correct
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||