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

Move *finite statistics functions from Images #13

Merged
merged 3 commits into from
Aug 28, 2021
Merged

Conversation

timholy
Copy link
Member

@timholy timholy commented Aug 28, 2021

A step towards JuliaImages/Images.jl#971

In one (not thorough) test, the implementation of meanfinite was ~3x faster than the one in Images, despite being far simpler. Those were written in an earlier era of Julia when we didn't even have fast anonymous functions.

These are also more flexible since minfinite and friends now automatically accepts a dims kwarg.

@codecov
Copy link

codecov bot commented Aug 28, 2021

Codecov Report

Merging #13 (991a03f) into master (9232149) will decrease coverage by 1.19%.
The diff coverage is 88.23%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #13      +/-   ##
==========================================
- Coverage   92.15%   90.96%   -1.20%     
==========================================
  Files           4        5       +1     
  Lines         153      177      +24     
==========================================
+ Hits          141      161      +20     
- Misses         12       16       +4     
Impacted Files Coverage Δ
src/statistics.jl 88.23% <88.23%> (ø)
src/precompile.jl 0.00% <0.00%> (ø)
src/restrict.jl 96.77% <0.00%> (+0.13%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 9232149...991a03f. Read the comment docs.

@timholy
Copy link
Member Author

timholy commented Aug 28, 2021

Julia 1.0 is such a problem...I'm putting in a dirt-simple but slow workaround.

@johnnychen94
Copy link
Member

johnnychen94 commented Aug 28, 2021

Do you think we need to set up documentation for this? Currently, I just list them as entries in README.

Edit: I'll comment more on JuliaImages/Images.jl#898

@timholy
Copy link
Member Author

timholy commented Aug 28, 2021

It's a perennial question, distributed vs centralized. TBH I would defer to your judgement, you've spent more time thinking about this than me.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants