octave_call: added call to weighted_sum