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

deprecate int_step #173

Open
alashworth opened this issue Mar 12, 2019 · 2 comments
Open

deprecate int_step #173

alashworth opened this issue Mar 12, 2019 · 2 comments
Labels
bug Something isn't working documentation good first issue Good for newcomers
Milestone

Comments

@alashworth
Copy link
Owner

Issue by bob-carpenter
Thursday Nov 09, 2017 at 20:09 GMT
Originally opened as stan-dev/stan#2433


Summary:

int_step(x) and step(x) return different values for 0.

The version of step(x) matches the BUGS definition and the standard definition of the Heaviside step function. Therefore, it should not be changed.

Changing int_step()'s behavior would be confusing, so instead it should be deprecated and replaced with a suggestion to replace existing uses of int_step(n) with the boolean expression (n >= 0), which evaluates to 1 if n >= 0 and 0 otherwise.

Current Version:

v2.17.0

@alashworth alashworth added this to the v3 milestone Mar 12, 2019
@alashworth alashworth added bug Something isn't working documentation good first issue Good for newcomers labels Mar 12, 2019
@alashworth
Copy link
Owner Author

Comment by roualdes
Tuesday Mar 27, 2018 at 23:29 GMT


I just submit 2 pull requests, one in stan-dev/stan#2501, which matches tests across int_step.stan and step.stan and one in stan-dev/math#805, in which the step function definitions were changed and tests were updated. Review when convenient, please. Thanks.

@alashworth
Copy link
Owner Author

Comment by bob-carpenter
Friday Mar 30, 2018 at 15:52 GMT


Thanks. I'll get to these ASAP.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working documentation good first issue Good for newcomers
Projects
None yet
Development

No branches or pull requests

1 participant