TABLE OF CONTENTS
- 1. /Averager
- 1.1. Averager/tAverager
- 1.2. Averager/AveragerClear
- 1.3. Averager/AveragerAdd
- 1.4. Averager/AveragerCount
- 1.5. Averager/AveragerNorm
- 1.6. Averager/AveragerMean
- 1.7. Averager/AveragerVariance
- 1.8. Averager/AveragerStdDev
- 1.9. Averager/AveragerStdErr
- 1.10. Averager/AveragerCentralMom
- 1.11. Averager/AveragerWrite
/Averager [ Modules ]
NAME
module Averager
PURPOSE
Encapsulate all routines and datas for a statistical 'averager'
Calculates mean, deviation etc of a statistical variable
INPUTS
...(This module needs no input)
Averager/tAverager [ Types ]
[ Top ] [ Averager ] [ Types ]
NAME
type Averager
PURPOSE
Type definition to store all information of an averager
SOURCE
type, public :: tAverager integer :: count = 0 ! number of entries counted real,dimension(0:4) :: sum = 0.0 ! sum of entries to different powers end type tAverager
Averager/AveragerClear [ Subroutines ]
[ Top ] [ Averager ] [ Subroutines ]
PURPOSE
reset the given Averager
INPUTS
OUTPUT
Averager/AveragerAdd [ Subroutines ]
[ Top ] [ Averager ] [ Subroutines ]
PURPOSE
add a value with some weight to the averager
INPUTS
- type(tAverager) :: A --- the Averager to use
- real :: val --- the value to add
- real, OPTIONAL :: weight --- te weight of the value
OUTPUT
Averager/AveragerCount [ Functions ]
[ Top ] [ Averager ] [ Functions ]
PURPOSE
return the count of the given Averager
INPUTS
Averager/AveragerNorm [ Functions ]
[ Top ] [ Averager ] [ Functions ]
PURPOSE
return the normalization (i.e. sum of weights) of the given Averager
INPUTS
Averager/AveragerMean [ Functions ]
[ Top ] [ Averager ] [ Functions ]
PURPOSE
return the average value of the given Averager
INPUTS
Averager/AveragerVariance [ Functions ]
[ Top ] [ Averager ] [ Functions ]
PURPOSE
return the variance (i.e. the second central moment) of the given Averager
INPUTS
NOTES
- this is just a shortcut to AveragerCentralMom(A, 2)
Averager/AveragerStdDev [ Functions ]
[ Top ] [ Averager ] [ Functions ]
PURPOSE
return the standard deviation (i.e. the square root of the variance) of the given Averager
INPUTS
NOTES
- this is just a shortcut to sqrt(AveragerVariance)
Averager/AveragerStdErr [ Functions ]
[ Top ] [ Averager ] [ Functions ]
PURPOSE
return the standard error of the given Averager
The standard error of the arithmetic average is given by the standard deviation, divided by the square root of the nomber of entries
INPUTS
Averager/AveragerCentralMom [ Functions ]
[ Top ] [ Averager ] [ Functions ]
PURPOSE
return the ith central moment of the given Averager
INPUTS
Averager/AveragerWrite [ Subroutines ]
[ Top ] [ Averager ] [ Subroutines ]
PURPOSE
write the given Averager to some file
INPUTS