Commit 1823086
authored
Allow weighted means with arbitrary eltype (#476)
PR 442 introduced a restriction of the input element type to be <:Number,
which means that the method doesn't get chosen by dispatch for e.g. inputs
with missing values. This leads to bizarre behavior, as it dispatches to a
nonsensical method where the array is treated as a function.1 parent 24a80ca commit 1823086
2 files changed
+8
-4
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
466 | 466 | | |
467 | 467 | | |
468 | 468 | | |
469 | | - | |
470 | | - | |
471 | | - | |
| 469 | + | |
| 470 | + | |
| 471 | + | |
472 | 472 | | |
473 | | - | |
| 473 | + | |
474 | 474 | | |
475 | 475 | | |
476 | 476 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
| 447 | + | |
| 448 | + | |
| 449 | + | |
446 | 450 | | |
0 commit comments