I'm just having a bit of trouble representing this situation in mathematical terms:
I start with a sequence of values, say [x, y, z, a, b, c]. I want to generate a new sequence of values from that sequence of values by assigning each index/element of the original sequence with a probability (between 0 and 1) and then selecting only the values greater than some threshold t to be put into the generated sequence. So, the sequence could have any number of elements between 0 and the original length of sequence.
I'm just trying to think of a way to use mathematical equations to represent that. I was thinking of doing something like:
new[n] = {keep if prob(old[n])>t} but that doesn't capture the sense that index n is the next number that is greater than value t.
Any help would be greatly appreciated!