Trying to make use a truncated distribution that has parameters that are Dual numbers but I get an error.
using Distributions
using ForwardDiff
Truncated(Normal(ForwardDiff.Dual(0.0), ForwardDiff.Dual(1.0)), -10, 10)
But I get an error about creating the distributions. I am not sure if this is a change to how Float64
works with Duals, or what. But I notice:
https://github.com/JuliaStats/Distributions.jl/pull/586
Which suggests this usage should work, and furthermore is tested for? Am I just calling it wrong? I find the test harness in Distributions hard to understand with the all expression + json use.