-
Notifications
You must be signed in to change notification settings - Fork 84
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
Conditional PROB with ELSE / new OP WTOSS (Weighted Toss) #277
base: main
Are you sure you want to change the base?
Conversation
- PRB Alias for PROB
Branching off prob is a good idea. The example you give is easily done with |
this is a nice addition, thank you. i'm a little concern that the |
thanks for reviewing thus far. I agree with the docs, it felt correct putting the also @tehn I am going to add to this PR a new sibling operator to
or cascading weighted tosses based on this PR
|
@tehn I added a new OP previously mentioned to this. I typically try to keep my PRs to a singular case, but I decided to add on since they are so similar in nature for working with weighted probabilities. I just built and tested these and really hope it makes it in the next release because I already see myself using this new stuff a ton. Thankfully it was fairly easy to implement with my abysmal c knowledge. Please lemme know if anything can be done more efficiently. Refer to the comment above for testing |
I put the PR out in the forum and some people made some interesting points about https://llllllll.co/t/a-draft-of-some-prob-tweaks-i-made-for-teletype/48956/5 |
What does this PR do?
Adds Functionality to the following
PRB
is now an alias ofPROB
Having the extra character helps when createing complex patches based on Probability
PROB
can now use theELSE
statementA common use case is to use a Bernoulli gate. What this means is that it either goes to A OR to B based on a weighted coin toss
example/. (60% chance of triggering 1, otherwise trigger 2)
How should this be manually tested?
See example above
I have,
CHANGELOG.md
andwhats_new.md
help_mode.c
(if applicable)make format
on each commit