Standard deviation of a real(sp) array.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=sp), | intent(in) | :: | array(:) | |||
| logical, | intent(in), | optional | :: | sample |
pure function std_dev_sp(array, sample) result(s) !! Standard deviation of a real(sp) array. real(sp), intent(in) :: array(:) logical, intent(in), optional :: sample real(dp) :: s s = sqrt(variance_dp(real(array, dp), sample)) end function std_dev_sp