imported>Scott |
imported>Mathias |
Line 1: |
Line 1: |
| ===Purpose=== | | ===Purpose=== |
| | Outputs a sigmoid function. |
|
| |
|
| Convert data columns based on matching ref col to target vector.
| |
|
| |
|
| ===Synopsis=== | | ===Synopsis=== |
|
| |
|
| :aligned = batchalign(data,ref_column,target,options) | | :[i0,iw] = peakfind(x,width,tolfac,w,options) |
| | :[i0,iw] = peakfind(x,width,options) |
|
| |
|
| ===Description===
| |
|
| |
|
| Stretch or contract data columns based on a reference (target) using given 'method'. Savgol options can be used to exaggerate transitions in data prior to cow.
| | ====Inputs==== |
|
| |
|
| ====Inputs==== | | * '''x''' = 3 element vector where x(1) = coefficient, x(2) = offset and x(3) is equal to the decay constant |
|
| |
|
| * '''data''' = (nsample, nvar) dataset or double array containing data columns to align.
| |
|
| |
|
| * '''ref_column''' = scalar indicating the column # of data that we are going to match OR ref_vector which is a vector to use in match.
| | ====Outputs==== |
|
| |
|
| * '''target''' = (nsample, 1) vector or dataset to which we are trying to match the ref_column or ref_vector.
| |
|
| |
|
| ====Outputs====
| |
|
| |
|
| * '''aligned''': dataset or double array (depending on input data type) containing the aligned data. If it is a dataset of different number of rows from input then the class, axisscale and labels are set according to the closest row in input dataset.
| |
|
| |
|
| ===Options===
| | <math>\sqrt{1-e^2}</math> |
| ''options'' = a structure array with the following fields:
| |
|
| |
|
| * '''method''': [ 'linear' | {'cow'} | 'padwithnan' ] Alignment method.
| | <math>f\left( {{a}_{i}},\mathbf{x} \right)={{x}_{1}}\left[ {{x}_{4}}{{\operatorname{e}}^{\frac{-4\ln \left( 2 \right){{\left( {{a}_{i}}-{{x}_{2}} \right)}^{2}}}{x_{3}^{2}}}}+\left( 1-{{x}_{4}} \right)\left[ \frac{x_{3}^{2}}{{{\left( {{a}_{i}}-{{x}_{2}} \right)}^{2}}+x_{3}^{2}} \right] \right]</math> |
|
| |
|
| * '''savgolwidth''': Number of points in savgol filter. | | *'''<math>{\operatorname{d2}\!y\over\operatorname{d2}\!x}</math>''' |
| * '''savgolorder''': Order of savgol polynomial.
| |
| * '''savgolderiv''': [0,1,2...] Order of derivative to take of target and ref_column before doing alignment (default = 0).
| |
| [[cow|Cow]] only options.
| |
| * '''cow.segments ''': number of segments.
| |
| * '''cow.slack''': max range of warping.
| |
| * '''cow.plots''': Governs plotting with COW (0 = no plots).
| |
| * '''cow.correlationpower''': correlation power.
| |
| * '''cow.forceequalsegs''': Force equal segment lengths in "xt" and "xP".
| |
| * '''cow.fixmaxcorrection''': Fix maximum correction.
| |
|
| |
|
| ===See Also===
| |
|
| |
|
| [[alignmat]],[[cow]], [[matchrows]]
| | * '''<math>{\operatorname{d}\!y\over\operatorname{d}\!{x}_{i}}</math>''' |
Purpose
Outputs a sigmoid function.
Synopsis
- [i0,iw] = peakfind(x,width,tolfac,w,options)
- [i0,iw] = peakfind(x,width,options)
Inputs
- x = 3 element vector where x(1) = coefficient, x(2) = offset and x(3) is equal to the decay constant
Outputs