indicator_times_value_aux {SeaVal} | R Documentation |
Auxiliary function for multiplying two numbers such that 0 x infty is 0. Needed for the ignorance score: 0log(0) should be 0.
indicator_times_value_aux(indicator, value)
indicator |
logical input vector |
value |
numeric input vector |
indicator x value with 0*infty = 0