trimmed_mean Function

public function trimmed_mean(x, p) result(rst)

Computes the trimmed mean of a data set.

Arguments

Type IntentOptional Attributes Name
real(kind=real64), intent(inout), dimension(:) :: x

An N-element array containing the data. On output, the array is sorted into ascending order.

real(kind=real64), intent(in), optional :: p

An optional parameter specifying the percentage of values from either end of the distribution to remove. The default is 0.05 such that the bottom 5% and top 5% are removed.

Return Value real(kind=real64)

The trimmed mean.


Contents