Skip to content

Extend testvalue with a ::Type argument #140

@cscherrer

Description

@cscherrer

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 #137 (comment)

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions