Displaying 1 result from an estimated 1 matches for "tp25491943p25492242".
2009 Sep 17
3
How to separate a function by 2 probabilities
Good Mourning,
I have a function to generate a matrix as I show part of it;
g[j,i]<-if (gen[j,i]==0) al1[i,1]+al1[i,1] else ...
However i would like that this function occurred with a probability P and
that another function (another formula to generate g matrix) with
probability P-1
That?s it, if P is .7, i would like that in 70% of the times (for random i
and j) the matrix g was generated