@ALDDerivedClass @ALDAOperator(genericExecutionMode=ALL, level=APPLICATION) public class DetectBaseline1D extends ALDOperator
This is accomplished first detecting local minima in the data and then fitting a line through these minima. If less then two minima are detected a line is fit through the first and last data point of the data.
ALDOperator.HidingMode, ALDOperator.HistoryConstructionMode
Modifier and Type | Field and Description |
---|---|
protected Baseline1D |
baseline
The baseline detected
|
protected ExperimentalData1D |
experiment
1D Experiment
|
completeDAG, name, operatorExecutionEventlistenerList, portHashAccess, verbose, versionProvider
Constructor and Description |
---|
DetectBaseline1D()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
private Baseline1D |
fit(double[] x,
double[] y)
least squares fit through points given with their
x and y coordinates. |
Baseline1D |
getBaseline() |
ExperimentalData1D |
getExperiment() |
protected void |
operate()
This method does the actual work and needs to be implemented by every
subclass.
|
void |
setExperiment(ExperimentalData1D experiment) |
addOperatorExecutionProgressEventListener, addParameter, addParameter, addParameterUnconditioned, fieldContained, fireOperatorExecutionProgressEvent, getALDPortHashAccessKey, getConstructionMode, getDocumentation, getHidingMode, getInactiveParameterNames, getInInoutNames, getInInoutNames, getInNames, getInOutNames, getMissingRequiredInputs, getName, getNumParameters, getOutInoutNames, getOutNames, getParameter, getParameterDescriptor, getParameterDescriptorUnconditioned, getParameterNames, getParameterUnconditioned, getSupplementalNames, getVerbose, getVersion, handleOperatorExecutionProgressEvent, hasInOutParameters, hasParameter, isAnnotatedParameter, isConfigured, print, print, print, printInterface, printInterface, readHistory, readResolve, reinitializeParameterDescriptors, removeOperatorExecutionProgressEventListener, removeParameter, runOp, runOp, runOp, setConstructionMode, setConstructionMode, setConstructionMode, setHidingMode, setName, setParameter, setParameterUnconditioned, setVerbose, toStringVerbose, unconfiguredItems, validate, validateCustom, validateGeneric, writeHistory, writeHistory, writeHistory
@Parameter(label="1D Experiment", required=true, direction=IN, description="1D Experiment", dataIOOrder=1) protected ExperimentalData1D experiment
@Parameter(label="Baseline", direction=OUT, description="Baseline", dataIOOrder=1) protected Baseline1D baseline
public DetectBaseline1D() throws ALDOperatorException
ALDOperatorException
protected void operate() throws ALDOperatorException, ALDProcessingDAGException
ALDOperator
operate
in class ALDOperator
ALDOperatorException
ALDProcessingDAGException
private Baseline1D fit(double[] x, double[] y)
x
and y
coordinates.
The arrays x
and y
are assumed to be of the same length.x
- y
- public ExperimentalData1D getExperiment()
public void setExperiment(ExperimentalData1D experiment)
experiment
- the experiment to setpublic Baseline1D getBaseline()
Copyright © 2010–2021 Martin Luther University Halle-Wittenberg, Institute of Computer Science, Pattern Recognition and Bioinformatics. All rights reserved.