Description Usage Arguments Value Examples

For a Gaussian mixture model fit to a curve by `fit_gaussians`

,
output the fit curve using the coefficients rather than the `nls`

object. This allows individual Gaussians to be removed from the fit model:
for example, if their height is below a certain threshold, or their
centres are outside the bounds of the chromatogram.

1 |

`coef` |
numeric vector of coefficients for a Gaussian mixture model fit
by |

`indices` |
the indices, or x-values, to predict a fitted curve for (for example, the fractions in a given chromatogram) |

the fitted curve

1 2 3 4 | ```
data(scott)
chrom <- clean_profile(scott[1, ])
fit <- fit_gaussians(chrom, n_gaussians = 1)
curve <- fit_curve(fit$coefs, seq_along(chrom))
``` |

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.