Returns the sum of entries of a vector and their share if a condition is true.
Inputs:
Output:
function SumCondition input Real vector[dimension] "Input vector"; input Boolean condition[dimension] "Vector of conditions"; input Integer dimension "Dimension of inputs"; output Real vectorSum = 0 "Sum of vector elements where condition is true"; output Real vectorShare[dimension] "Share of vector elements where condition is true, entries with conditon is false are set to zero"; end SumCondition;