ks_aggregate Function

pure function ks_aggregate(ks, rho) result(agg)

The KS aggregate of values ks: . Of the segments' KS rows, it is exactly the KS of all their samples.

Arguments

Type IntentOptional Attributes Name
real(kind=wp), intent(in), dimension(:) :: ks
real(kind=wp), intent(in) :: rho

Return Value real(kind=wp)


Called by

proc~~ks_aggregate~~CalledByGraph proc~ks_aggregate ks_aggregate proc~eclipse_fc eclipse_fc proc~eclipse_fc->proc~ks_aggregate proc~eclipse_optimize eclipse_optimize proc~eclipse_optimize->proc~ks_aggregate interface~eclipse_optimize my_solver_type%eclipse_optimize interface~eclipse_optimize->proc~eclipse_optimize proc~halo_solver_main halo_solver_main proc~halo_solver_main->interface~eclipse_optimize

Source Code

    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