The KS aggregate of values ks: .
Of the segments' KS rows, it is exactly the KS of all their samples.
| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| real(kind=wp), | intent(in), | dimension(:) | :: | ks | ||
| real(kind=wp), | intent(in) | :: | rho |
pure function ks_aggregate(ks, rho) result(agg) real(wp),dimension(:),intent(in) :: ks real(wp),intent(in) :: rho real(wp) :: agg real(wp) :: kmin kmin = minval(ks) agg = kmin - log(sum(exp(-rho*(ks - kmin)))) / rho end function ks_aggregate