Loading...
Searching...
No Matches
Statistics

Definition

Statistics module.

Data Types

type  stats
 Provides methods to compute mean, standard deviation and variance of a given sample. More...

Methods

◆ stats_compute()

subroutine stats_compute ( class(stats), intent(inout) this,
real(r8), dimension(:), intent(in) y )

Compute mean, standard deviation and variance of a Type bound to the method.

Parameters
[in,out]thisbound argument
[in]ySample array

Examples

type(stats) :: s
integer :: i
real(r8) :: array(10)
call random_number(array)
call s%compute(array)
Note
At the moment it only works for real(r8) arrays

Remarks

Definition at line 81 of file Statistics.f90.