analyseMultiplet

src/index.js

Analyse a multiplet

analyseMultiplet(data: object?, options: object)
Parameters
data (object? = {}) object of the kind {x:[], y:[]} containing the multiplet
options (object = {})
Name Description
options.frequency number (default 400) frequency
options.debug boolean (default false) generate debug information if true
deco(yi: number?, jStar: number?, sign: number, dir: number, chopTail: number, multiplicity: number?)
Parameters
yi (number?)
jStar (number?)
sign (number = 1) ++ multiplet :1 +- multiplet : -1
dir (number = 1) from left to right : 1 -1 from right to left, 0: sum of both
chopTail (number = 1) run the end of the multiplet
multiplicity (number? = 0.5) value for spin 1/2

Analyse X / Y array and extract multiplicity

maxY
Parameters
data (object = {}) An object containing properties x and y
options (object = {}) Options (default is empty object)
Name Description
options.frequency number (default 400) Acquisition frequency, default is 400 MHz