Skip to content

Move *finite statistics functions from Images#13

Merged
timholy merged 3 commits into
masterfrom
teh/finite_stats
Aug 28, 2021
Merged

Move *finite statistics functions from Images#13
timholy merged 3 commits into
masterfrom
teh/finite_stats

Conversation

@timholy
Copy link
Copy Markdown
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
Copy Markdown

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
Copy Markdown
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
Copy Markdown
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
Copy Markdown
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