Calculates the population skewness of a set of values given in a vector of any size with one dimension applying the following equation:
Where:
y = pskewness(x)
Where:
x
= vector of rank 1 with real numbers.
See this example to use an array of
rank larger than 1.y
= real number of the same kind as x
with the population skewness of x
.The following program calculates the population skewness of a vector:
PROGRAM pskewnessExample
USE FU_Statistics, ONLY: pskewness
IMPLICIT NONE
REAL, DIMENSION(5) :: x = [1., 2., 3., 4., 5.]
WRITE(*,*) pskewness(x)
END PROGRAM pskewnessExample
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=sp), | intent(in), | DIMENSION(:) | :: | x |
Vector of real numbers to calculate the population skewness. It can have any size and it must have one dimension. |
Real number with the population skewness of the x.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=dp), | intent(in), | DIMENSION(:) | :: | x |
Vector of real numbers to calculate the population skewness. It can have any size and it must have one dimension. |
Real number with the population skewness of the x.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=qp), | intent(in), | DIMENSION(:) | :: | x |
Vector of real numbers to calculate the population skewness. It can have any size and it must have one dimension. |
Real number with the population skewness of the x.