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

AbstractProductMeasure #110

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from
Draft

AbstractProductMeasure #110

wants to merge 3 commits into from

Conversation

cscherrer
Copy link
Collaborator

@cscherrer cscherrer commented Oct 26, 2022

It's currently awkward to define methods for AbstractProductMeasures, because that abstract type doesn't know anything about the underlying structure.

This PR explores one possibility for fixing that. The idea is that types

T <: AbstractProductMeasure{M}

should satisfy

marginals(mu::T) isa M

The M could be an abstract type, even as far as struct T <: AbstractProductMeasure{AbstractArray} or even struct T <: AbstractProductMeasure{Any}. More specific instances would just inherit more methods.

What do you think @oschulz? No rush :)

@github-actions
Copy link

Package name latest stable
MeasureTheory.jl

@codecov
Copy link

codecov bot commented Oct 26, 2022

Codecov Report

Base: 53.32% // Head: 53.10% // Decreases project coverage by -0.21% ⚠️

Coverage data is based on head (e41eff4) compared to base (47ffd35).
Patch coverage: 85.71% of modified lines in pull request are covered.

Additional details and impacted files
@@            Coverage Diff             @@
##           master     #110      +/-   ##
==========================================
- Coverage   53.32%   53.10%   -0.22%     
==========================================
  Files          42       42              
  Lines        1189     1192       +3     
==========================================
- Hits          634      633       -1     
- Misses        555      559       +4     
Impacted Files Coverage Δ
src/combinators/product.jl 46.80% <ø> (ø)
src/standard/stdmeasure.jl 91.30% <ø> (ø)
src/combinators/power.jl 78.68% <85.71%> (-5.80%) ⬇️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

☔ View full report at Codecov.
📢 Do you have feedback about the report comment? Let us know in this issue.

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.

1 participant