Computes regression coefficient/trend.
where is the slope of the regression line (linear trend),
is the covariance of x and y, and
is the variance of x.
Vectors x and y must be the same size.
Impure wrapper function for f_sts_trend_core.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in) | :: | x(:) |
x vector (assumed size array) |
||
| real(kind=wp), | intent(in) | :: | y(:) |
y vector (assumed size array) |
trend/regression slope