Statistics accumulators.
More...
|
| subroutine, public | init_stat |
| | Initialise the accumulators. More...
|
| |
| subroutine, public | acc (x) |
| | Accumulate one state. More...
|
| |
| real(kind=8) function, dimension(0:ndim), public | mean () |
| | Function returning the mean. More...
|
| |
| real(kind=8) function, dimension(0:ndim), public | var () |
| | Function returning the variance. More...
|
| |
| integer function, public | iter () |
| | Function returning the number of data accumulated. More...
|
| |
| subroutine, public | reset |
| | Routine resetting the accumulators. More...
|
| |
|
| integer | i =0 |
| | Number of stats accumulated. More...
|
| |
| real(kind=8), dimension(:), allocatable | m |
| | Vector storing the inline mean. More...
|
| |
| real(kind=8), dimension(:), allocatable | mprev |
| | Previous mean vector. More...
|
| |
| real(kind=8), dimension(:), allocatable | v |
| | Vector storing the inline variance. More...
|
| |
| real(kind=8), dimension(:), allocatable | mtmp |
| |
Statistics accumulators.
- Copyright
- 2015 Lesley De Cruz & Jonathan Demaeyer. See LICENSE.txt for license information.
| subroutine, public stat::acc |
( |
real(kind=8), dimension(0:ndim), intent(in) |
x | ) |
|
Accumulate one state.
Definition at line 48 of file stat.f90.
49 REAL(KIND=8),
DIMENSION(0:ndim),
INTENT(IN) :: x
| subroutine, public stat::init_stat |
( |
| ) |
|
Initialise the accumulators.
Definition at line 35 of file stat.f90.
38 IF (allocstat /= 0) stop
'*** Not enough memory ***' integer ndim
Number of variables (dimension of the model)
| integer function, public stat::iter |
( |
| ) |
|
Function returning the number of data accumulated.
Definition at line 72 of file stat.f90.
| real(kind=8) function, dimension(0:ndim), public stat::mean |
( |
| ) |
|
Function returning the mean.
Definition at line 60 of file stat.f90.
60 REAL(KIND=8),
DIMENSION(0:ndim) :: mean
| subroutine, public stat::reset |
( |
| ) |
|
Routine resetting the accumulators.
Definition at line 78 of file stat.f90.
| real(kind=8) function, dimension(0:ndim), public stat::var |
( |
| ) |
|
Function returning the variance.
Definition at line 66 of file stat.f90.
66 REAL(KIND=8),
DIMENSION(0:ndim) :: var
Number of stats accumulated.
Definition at line 20 of file stat.f90.
| real(kind=8), dimension(:), allocatable stat::m |
|
private |
Vector storing the inline mean.
Definition at line 23 of file stat.f90.
23 REAL(KIND=8),
DIMENSION(:),
ALLOCATABLE :: m
| real(kind=8), dimension(:), allocatable stat::mprev |
|
private |
Previous mean vector.
Definition at line 24 of file stat.f90.
24 REAL(KIND=8),
DIMENSION(:),
ALLOCATABLE :: mprev
| real(kind=8), dimension(:), allocatable stat::mtmp |
|
private |
Definition at line 26 of file stat.f90.
26 REAL(KIND=8),
DIMENSION(:),
ALLOCATABLE :: mtmp
| real(kind=8), dimension(:), allocatable stat::v |
|
private |
Vector storing the inline variance.
Definition at line 25 of file stat.f90.
25 REAL(KIND=8),
DIMENSION(:),
ALLOCATABLE :: v