Description Usage Arguments Details Value
Get RMSE of stick model for density stratification
1 |
strt |
numeric for depth of mixing layer |
profin |
|
est |
logical if model estimates are returned instead of RMSE |
The stick model is fit to a plot of seawater density by depth to estimate the depth of the mixing layer. The model assumes mean density at depths above the value for strt
and a linear model at depths deeper than strt
. The model is joined at the mean density value above strt
and the regression fit through the same value at strt
. The function returns RMSE of the fit for single interval optimization with findstk
.
The profin
data frame must have two columns for depth (binmd
) and seawater density (sig
).
The RMSE value if est = FALSE
, otherwise a two-element list of x and y values corresponding to the beginning, join, and ending values for depth and density for the model.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.