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

Density tests #129

Open
cscherrer opened this issue Aug 21, 2023 · 0 comments
Open

Density tests #129

cscherrer opened this issue Aug 21, 2023 · 0 comments
Assignees

Comments

@cscherrer
Copy link
Collaborator

These tests from MeasureTheory.jl are currently failing:

@testset "Density measures and Radon-Nikodym" begin
    x = randn()
    let d = (𝒹(Cauchy(), Normal()), Normal())
        @test logdensityof(𝒹(d, Cauchy()), x)  0 atol = 1e-12
    end

    let f = 𝒹((x -> x^2, Normal()), Normal())
        @test densityof(f, x)  x^2
    end

    let d = ∫exp(log𝒹(Cauchy(), Normal()), Normal())
        @test logdensity_def(d, Cauchy(), x)  0 atol=1e-12
    end

    let f = 𝒹(∫exp(x -> x^2, Normal()), Normal())
        @test logdensityof(f, x)  x^2
    end
end

To some degree this is syntactic - the way of writing these things has changed recently. But there may also be some bugs. Let's rework them and put them in MeasureBase.

@cscherrer cscherrer self-assigned this Aug 21, 2023
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

No branches or pull requests

1 participant