I want to check an NMR spectator and want to make the best fit of a specific peak using a yoga gaugee I am With the following code it is possible to fit these two chieftains on top, but can it be easily normalized to NA Gaussis?
freq & lt; - seq (100, 200, 0.1) sign & lt; - 3.5 * XP (- (freq-130) ^ 2/50) + 0.2 + 1.5 * AP (- (freq-120) ^ 2/10) SimSignal and LT; -PPIIS (length (signal), 100 * signal) + Rnorm (length (signal) plot (Freak, Simsangle) ridge & lieutenant; - NLS (SimSignal ~ BG + H1 * APP (- (Freak - M1) / S1) ^ 2) + H2 * APP (- (Freak - M2) / S2), start = C (BG = 4, H1 = 300, M1 = 128, S1 = 6, H2 = 200, M2 = 122, S2 = 4), trace = t) Line (Freak, Predict (Race, Freak), col = 'Red')
There is another desire that contribution from every Gaussian to the original peak, eg. Gaussians should be side-plot (instead of plotting their yoga as above) side.
the only way
Comments
Post a Comment