View source: R/FitFunctions_nGaussian_ga.R
Fit N-Gaussian Peaks Using genetic algorithm
1 2 3 4 5 6 7 8 9 10 11 12 13 14 | fit_nGaussian_ga(
x,
y,
init_mus,
init_ks,
init_sigmas,
lower_mus,
lower_ks,
lower_sigmas,
upper_mus,
upper_ks,
upper_sigmas,
maxit = 1000
)
|
x |
values of the x-axis to be fit |
y |
values of the y-axis to be fit |
init_mus |
initial guess of mu (the peak center) - either a single value to be applied globally or a value specifying each peak |
init_ks |
initial guess of k (the peak height) |
maxit |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.