current version 1.1 - 19th May 2021
version | date | comment |
---|---|---|
1.0 | 21/Jun/2017 | Original code |
1.1 | 19/May/2021 | linearRegressionSlope compute R2 as optional argument |
license: GNU GPL http://www.gnu.org/licenses/
This file is part of
MOSAICO -- MOdular library for raSter bAsed hydrologIcal appliCatiOn.
Copyright (C) 2011 Giovanni Ravazzani
library to compute statistics
compute mean of a vector of real numbers. If nodata is passed numbers are filetered before computing mean
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=float), | intent(in) | :: | vector(:) | |||
real(kind=float), | intent(in), | optional | :: | nodata |
compute slope of linear regression between vector x and y
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=float), | intent(in) | :: | x(:) | |||
real(kind=float), | intent(in) | :: | y(:) | |||
real(kind=float), | intent(in), | optional | :: | nodata | ||
real(kind=float), | intent(out), | optional | :: | r2 |
slope of linear regression
compute mean of a vector of real numbers. If nodata is passed numbers are filetered before computing mean
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=float), | intent(in) | :: | vector(:) | |||
real(kind=float), | intent(in), | optional | :: | nodata |