Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mean(f, x, weights) not supported #868

Open
jariji opened this issue Jun 20, 2023 · 0 comments
Open

mean(f, x, weights) not supported #868

jariji opened this issue Jun 20, 2023 · 0 comments

Comments

@jariji
Copy link

jariji commented Jun 20, 2023

This method is not supported. Could it be?

julia> mean(==(1), [1,2,3])
0.3333333333333333

julia> mean([1,2,3], weights([10,20,30]))
2.3333333333333335

julia> mean(==(1), [1,2,3], weights([10,20,30]))
ERROR: MethodError: no method matching mean(::Base.Fix2{typeof(==), Int64}, ::Vector{Int64}, ::Weights{Int64, Int64, Vector{Int64}})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants