12-10-2014 10:59 AM - edited 12-10-2014 11:00 AM
@jcarmody wrote:
Maybe the probability of a "1" is valid for each element, but I don't think this is what the OP wanted. This example should have five Trues, no? I couldn't get it to fill it with 15 Trues, but 14 happened pretty quickly.
What point are you trying to make? If you have a 0.25 probability for each element, a sum above 14 is very unlikely (but with a probability that can be calculated exactly).
It really depends what the OP wanted. If you know that there are exactly 5 trues every time, you can often predict the outcome early. For example if the first 15 elements are false, you can predict the outcome of the next five with 100% certainty. Same if all five TRUEs show up early. Only the Bernoulli solution gives you unpredictability up to the last pick.
12-10-2014 11:45 AM
@altenbach wrote:
What point are you trying to make?
My point was that Bernoulli Noise.vi doesn't do what was asked. If I change my "ones probability" constant to 0.1, I get three Trues more often than I get two. The OP wrote "I want to present the test stimulus on 90% of the trials and the catch stimulus on 10%". OP didn't say that he wanted a 90% probability of a test stimulus being presented at each trial.
12-10-2014 12:03 PM
12-10-2014 12:45 PM
@altenbach wrote:
[...] Just trying to help. 🙂
You did, thank you, but I missed your point the first time. I understand now...