indicator_times_value_aux: Auxiliary function for multiplying two numbers such that 0 x infty is 0. Needed for the ignorance score: 0log(0) should be 0.
Description
Auxiliary function for multiplying two numbers such that 0 x infty is 0. Needed for the ignorance score: 0log(0) should be 0.
Usage
indicator_times_value_aux(indicator, value)
Value
indicator x value with 0*infty = 0
Arguments
- indicator
logical input vector
- value
numeric input vector