Description Usage Arguments Value Examples
Fits a sinusoid through data provided as an x
and y
vector and returns a list containing both the fitted curve and the
parameters of that curve.
Used to produce initial values for modeling data windows and later
to find peaks in modeled julian day values to align the result to
a cumulative age timeline.
1 |
x |
Vector of |
y |
Vector of |
fixed_period |
Optional variable for fixing the period of the sinusoid
in the depth domain. Defaults to |
plot |
Should the fitting result be plotted? |
A list containing a vector of parameters of the fitted sinusoid
and the fitted values belonging to each x
value.
Fitting parameters:
I
= the mean annual value of the sinusoid (height)
A
= the amplitude of the sinusoid
Dper
= the period of the sinusoid in x
domain
peak
= the location of the peak in the sinusoid
R2adj
= the adjusted R^2
value of the fit
p
= the p-value of the fit
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.