View source: R/NormCurveToArea.R
NormCurvToArea | R Documentation |
Normalise a curve such that \intyNewdx = area (according to trapezoid integration)
NormCurvToArea(y, x = seq(0, 1, length.out = length(y)), area = 1)
y |
values of curve at time-points x |
x |
design time-points (default: seq(0,1, length.out=length(y))) |
area |
value to normalise the curve onto (default: 1) |
yNew values of curve at times x such that [\intyNewdx = area]
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.