JuliaMath / JuliaMath/MeasureTheory.jl
Extend `testvalue` with a `::Type` argument
Open
- Dominant language
- Julia
- Stars
- 401
- Forks
- 31
- PR merge metrics
- No merged PRs in 30d
Description
If this is a universal requirement, can you also document somewhere, perhaps on the definition of `testvalue` that it should produce a point from the sample space of the measure such that evaluating `logdensity` on it produces a `Float64`?
_Originally posted by @sethaxen in https://github.com/cscherrer/MeasureTheory.jl/pull/137#discussion_r688925536_
We should add methods to `testvalue` so that for any measure `d`,
1. `logdensity(d, testvalue(d)) isa Float64`
2. `logdensity(d, testvalue(T, d) isa T`
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.