Provides methods to compute mean, standard deviation and variance of a given sample.
The statistics computed at the moment are limited to mean, min, max and standard deviations. The implementation is quite naive and serve only the purpose of the current library.
Initializes a new instance of the stats class
type(stats) :: s
Examples
Remarks
Definition at line 48 of file Statistics.f90.
Variables | |
real(r8), public | mean = 0.0_r8 |
Mean value of the sample. | |
real(r8), public | min = 0.0_r8 |
Minimal value of the sample. | |
real(r8), public | max = 0.0_r8 |
Maximal value of the sample. | |
real(r8), public | stddev = 0.0_r8 |
Standard deviation of the sample. | |
real(r8), public | variance = 0.0_r8 |
Variance of the sample. | |
procedure, pass(this) compute | ( | class(stats), intent(inout) | this, |
real(r8), dimension(:), intent(in) | y ) |
[in,out] | this | bound argument |
[in] | y | Sample array |
Examples
Remarks
Definition at line 60 of file Statistics.f90.