You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Right now, only the data gets passed to the reducer function. If we want to do a weighted average, there is currently no way to have the windowing select the weights as well. To overcome this, block_reduce can take an optional weights=array argument. If it's given, then select the values from it as well and pass it as weights=windowed_array to the reducer function.
The text was updated successfully, but these errors were encountered:
`BlockReduce` now accepts multiple data components and weights.
Weights will only work if the reduction function accepts a `weights`
keyword argument.
Separate the coordinate calculation into a private method for reuse
when making specialized classes, like `BlockMean`.
These classes will be necessary to output weights as well.
There is no generic solution for that because each reduction will
have a different way of estimating weights.
Fixes#50
Right now, only the data gets passed to the reducer function. If we want to do a weighted average, there is currently no way to have the windowing select the weights as well. To overcome this,
block_reduce
can take an optionalweights=array
argument. If it's given, then select the values from it as well and pass it asweights=windowed_array
to the reducer function.The text was updated successfully, but these errors were encountered: