-
Notifications
You must be signed in to change notification settings - Fork 2
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
introduce sumfinite
, enhancement to *finite
, rename minfinite
/maxfinite
#17
Conversation
Functionaility changes: * support `meanfinite([f=identity], A)` * add `sumfinite([f=identity], A)` * "fixes" `varfinite` for `RGB` array inputs using dot product Also add more comprehensive tests
* rename: `minfinite` -> `minimum_finite` * rename: `maxfinite` -> `maximum_finite` * add function argument to `minimum_finite` and `maximum_finite` * deprecate `maxabsfinite(A)` in favor of `maximum_finite(abs, A)` * support `minimum_finite(A; dims)` and `maximum_finite(A; dims) * more comprehensive tests
Codecov Report
@@ Coverage Diff @@
## master #17 +/- ##
==========================================
+ Coverage 89.94% 90.40% +0.45%
==========================================
Files 6 6
Lines 189 198 +9
==========================================
+ Hits 170 179 +9
Misses 19 19
Continue to review full report at Codecov.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This looks great, thanks for doing it!
@@ -61,14 +83,14 @@ if Base.VERSION >= v"1.1" | |||
function varfinite(A; kwargs...) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Should we make this varmult_finite
instead?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
A good suggestion, let me open an issue for it first and then fix it in a separate PR; this PR is already quite big actually.
Edit: issue opened #18
This commit moves some of the basic stats-related functions to ImageBase so that other packages don't need to depend on the large Images dependency. A few deprecations are involved to support the more generic version. See also: JuliaImages/ImageBase.jl#17 Co-authored-by: JohnnyChen <[email protected]>
This commit moves some of the basic stats-related functions to ImageBase so that other packages don't need to depend on the large Images dependency. A few deprecations are involved to support the more generic version. See also: JuliaImages/ImageBase.jl#17 Co-authored-by: JohnnyChen <[email protected]>
Features:
sumfinite([f=identity], A)
meanfinite([f=identity], A)
minimum_finite([f=identity], A)
maximum_finite([f=identity], a)
Bug fixes:
varfinite
forRGB
array inputs using dot product. This requires ColorVectorSpace v0.9.7minimum_finite(A; dims)
andmaximum_finite(A; dims)
Deprecations:
minfinite
->minimum_finite
maxfinite
->maximum_finite
maxabsfinite(A)
in favor ofmaximum_finite(abs, A)
There are some type infer issues, which I leave as future work.
Closes #14