This module includes general purpose functions used in several parts of the library
Subroutine to calculate the maximum of a real array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | dimension(:) | :: | a | |||
| real(kind=wp) | :: | mx | 
Subroutine to find the position of the maximum value of a real array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | dimension(:) | :: | a | 
                 A real array  | 
        ||
| real(kind=wp) | :: | mx | 
                 A real value with the maximum  | 
        |||
| integer | :: | p | 
                 An integer value with the position of the maximum  | 
        
Function to calculate the minimum of an array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | dimension(:) | :: | a | 
 Real array  | 
        
Real value with the minimum
Function to calculate the mean of a real array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(inout), | dimension(:) | :: | a | 
 A real array  | 
        
A real value with the calculated mean
Function to calculate the variance of a real array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(inout), | dimension(:) | :: | a | 
 A real array  | 
        
A real variable with the calculated variance
Function to calculate the standard deviation of a real array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(inout), | dimension(:) | :: | a | 
 A real array  | 
        
A real variable with the calculated standard deviation
Function to calculate the coefficient of variation of a real array
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(inout), | dimension(:) | :: | a | 
 A real array  | 
        
A real variable with the calculated coefficient of variation
Function to calculate the correlation coefficient between two real vectors
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(inout), | dimension(:) | :: | x | 
 Real arrays  | 
        |
| real(kind=wp), | intent(inout), | dimension(:) | :: | y | 
 Real arrays  | 
        
Real value with the correlation coefficient