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

rename probability functions #320

Closed
10 tasks
bob-carpenter opened this issue Jul 25, 2016 · 3 comments
Closed
10 tasks

rename probability functions #320

bob-carpenter opened this issue Jul 25, 2016 · 3 comments

Comments

@bob-carpenter
Copy link
Contributor

bob-carpenter commented Jul 25, 2016

Summary:

Rename probability functions to match the language definitions.

Description:

  • _log to _lpdf or _lpmf
  • _log_cdf to _lcdf
  • _log_ccdf to _lccdf

This will hugely simplify the code generation component of Stan.

To Do

  • Rename functions
    • Update function name
    • Update documentation
    • Update file name
    • Update tests
  • Figure out how to test distributions (might not need to change the generated code)
  • Update makefile appropriately

Current Version:

v2.10.0

@syclik
Copy link
Member

syclik commented Oct 14, 2016

Do we need to worry about backwards compatibility here?

  • normal_log() should be renamed to normal_lpdf()
  • Do we need to keep a normal_log() function that's deprecated that calls normal_lpdf(); if so, how do we deal with deprecation?

@bob-carpenter
Copy link
Contributor Author

bob-carpenter commented Oct 14, 2016 via email

@syclik
Copy link
Member

syclik commented Oct 14, 2016

Thanks. That makes sense.

On Fri, Oct 14, 2016 at 11:25 AM, Bob Carpenter notifications@github.com
wrote:

We need to maintain backward compatibility until Stan 3.0.
At that point, I can do the do-si-do in stan-dev/stan to get
rid of the _log suffixes in the math lib and the language.

For now, we should add a doxygen command for each of the _log
forms:

@deprecated ---how to replace it---

along with the @param etc. See:

https://www.stack.nl/~dimitri/doxygen/manual/commands.html#cmddeprecated


You are receiving this because you were assigned.
Reply to this email directly, view it on GitHub
#320 (comment), or mute
the thread
https://github.com/notifications/unsubscribe-auth/AAZ_FyrPinL2zcxv5eAFTCfSbrSugIudks5qz58HgaJpZM4JTuYn
.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants