Analysis: Mathematics: Subtract Reference Data
Subtract one dataset from another
subtract_ref iy1:=[Book1]Sheet1!(1,2) iy2:=[Book1]Sheet1!(3,4) oy:=[Book1]Sheet1!(5,6) // Subtracts XY pair in cols 3&4 from XY pair in 1&2 and puts subtracted XY pair in cols 5&6.
Please refer to the page for additional option switches when accessing the x-function from script
Display Name |
Variable Name |
I/O and Type |
Default Value |
Description |
---|---|---|---|---|
Input | iy1 |
Input XYRange |
|
Input XY data range or curve. |
Reference Data | iy2 |
Input XYRange |
|
Specify the reference data to be subtracted. |
Subtract Common Range Only | common |
Input int |
|
Operate only where data ranges overlap. |
Rescale Source Graph | rescale |
Input int |
|
Specify whether to rescale the source graph after subtraction. |
Output | oy |
Output XYRange |
|
The output data range. See the syntax here. |
X Minimum | xmin |
Output double |
|
Minimum X value of output curve. |
X Maximum | xmax |
Output double |
|
Maximum X value of output curve. |
X Mean | xmean |
Output double |
|
Mean X value of output curve. |
Y Minimum | ymin |
Output double |
|
Minimum Y value of output curve. |
Y Maximum | ymax |
Output double |
|
Maximum Y value of output curve. |
Y Mean | ymean |
Output double |
|
Mean Y value of output curve.
|
This tool is used to subtract one curve from another. When the two datasets' coordinates differ, the two curves will be interpolated or extrapolated with linear interpolation before subtraction occurs.
Then you can see a new curve is created.
Keywords:baseline correction, subtraction