Skip to content

Wiener_log: raise exception for tau >= y #150

@randommm

Description

@randommm

@bob-carpenter commented 3 days ago (at stan-dev/stan#1578):

"Our general convention for probabilty functions is to raise an
exception. So rather than the comparisons, this should use
another check function.

And there's never any reason to set a value and then immediately
return it. It could be written as

return stan::math::negative_infinity();

But I really think it should be replaced with something that
throws an informative exception --- the idea is to trap errors
as early as possible and let the user know where they arise.

  • Bob"

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions