Baselineds: Difference between revisions

From Eigenvector Research Documentation Wiki
Jump to navigation Jump to search
imported>Scott
(Created page with "===Purpose=== Wrapper for baselining functions. ===Synopsis=== :[baselined_data,baselines] = baselineds(spec,options); %Calibrate and apply. : spec = baselineds(baselined_d...")
 
imported>Scott
 
(3 intermediate revisions by the same user not shown)
Line 11: Line 11:


Wrapper for baselining functions.
Wrapper for baselining functions.
NOTE: To use "old" version of baseline preprocess methods turn "newbaselineview" off with the following command (or with [[Expert_Preferences_GUI|preferences expert]]):
setplspref('preprocatalog','newbaselineview','off');


===Inputs===
===Inputs===
Line 23: Line 27:


* '''algorithm''' : [ {'wlsbaseline'} | 'baseline' | 'whittaker' | 'datafit']
* '''algorithm''' : [ {'wlsbaseline'} | 'baseline' | 'whittaker' | 'datafit']
:: wlsbaseline - Baseline subtraction using iterative asymmetric least squares algorithm.
:: [[wlsbaseline]] - Baseline subtraction using iterative asymmetric least squares algorithm.
:: baseline    - Subtracts a polynomial baseline offset from spectra.
:: [[baseline]]   - Subtracts a polynomial baseline offset from spectra.
:: whittaker  - Baseline subtraction using Whittaker filter.
:: [[wlsbaseline | whittaker]]   - Baseline subtraction using Whittaker filter.
:: datafit    - Asymmetric least squares baselining.
:: [[datafit_engine | datafit]]     - Asymmetric least squares baselining.
 
* '''order''' : positive integer for polynomial order {default =1}.
 
* '''wlsbaseline_options''' : see wlsbaseline.m.


* '''mode''': [ 1 ] dimension of data on which to calculate the minima and maxima for scaling. 1 = over rows (each row will have range [0,1]); 2 = over columns (each column will have range [0,1]). Default is 1.
* '''whittaker_options''' : see wlsbaseline.m.
===Outputs===


* '''xcorr''' = the scaled data (xcorr will be the same class as x)
* '''baseline_freqs''' : wavenumber or frequency axis vector, see baseline.m.
* '''baseline_range''' : baseline regions, see baseline.m.
* '''baseline_options''' : see baseline.m.


* '''mins''' = vector of minima for each row (or column)
* '''datafit_options''' : see datafit_engine.m. NOTE: 'lambdas' and 'trbflag' options have defaults updated for baselining.


* '''maxs''' = vector of maxima for each row (or column)
===Outputs===


* '''baselined_data''' = data with baseline removed.
* '''baselines''' = baselines removed from data.


===See Also===
===See Also===


[[normaliz]], [[preprocess]], [[snv]]
[[baseline]], [[datafit_engine]], [[preprocess]], [[wlsbaseline]]

Latest revision as of 13:47, 19 December 2018

Purpose

Wrapper for baselining functions.

Synopsis

[baselined_data,baselines] = baselineds(spec,options); %Calibrate and apply.
spec = baselineds(baselined_data,baselines); %Undo

Description

Wrapper for baselining functions.

NOTE: To use "old" version of baseline preprocess methods turn "newbaselineview" off with the following command (or with preferences expert):

setplspref('preprocatalog','newbaselineview','off');

Inputs

  • spec = M by N matrix of data to be baslined (class "double" or "dataset").

Options

options = a structure array with the following fields:

  • plots : [ {'none'} | 'final' ] governs plotting.
  • algorithm : [ {'wlsbaseline'} | 'baseline' | 'whittaker' | 'datafit']
wlsbaseline - Baseline subtraction using iterative asymmetric least squares algorithm.
baseline - Subtracts a polynomial baseline offset from spectra.
whittaker - Baseline subtraction using Whittaker filter.
datafit - Asymmetric least squares baselining.
  • order : positive integer for polynomial order {default =1}.
  • wlsbaseline_options : see wlsbaseline.m.
  • whittaker_options : see wlsbaseline.m.
  • baseline_freqs : wavenumber or frequency axis vector, see baseline.m.
  • baseline_range : baseline regions, see baseline.m.
  • baseline_options : see baseline.m.
  • datafit_options : see datafit_engine.m. NOTE: 'lambdas' and 'trbflag' options have defaults updated for baselining.

Outputs

  • baselined_data = data with baseline removed.
  • baselines = baselines removed from data.

See Also

baseline, datafit_engine, preprocess, wlsbaseline