I'm wondering if there's a straight forward way to generate a poisson distribution for a distribution for a fixed number of events. For example, I have a vector of means for a poisson distribution; something like this: B=[3, 5, 7, 9, 10] Each element in B is the mean number of events I can expect to observe in that bin when I model the data in each bin as a poisson distribution. If I want to simulate observations of this distribution I can use the command poissrnd: poissrnd(B) Which generates a random vector. I now want to generate observations but I'd like to have control over the total number of events that are observed. Is there a straight forward way to do that?
a = poissrnd(b,n,m)
B = {3, 5, 7, 9, 10} A = cellfun(@(x) poissrnd(x,3,5),B,'UniformOutput',0)
Now element 'i' in 'A' i.e., A{i} contains '3 x 5' Poisson observations with parameter B{i}.
Matlabsolutions.com provides guaranteed satisfaction with a
commitment to complete the work within time. Combined with our meticulous work ethics and extensive domain
experience, We are the ideal partner for all your homework/assignment needs. We pledge to provide 24*7 support
to dissolve all your academic doubts. We are composed of 300+ esteemed Matlab and other experts who have been
empanelled after extensive research and quality check.
Matlabsolutions.com provides undivided attention to each Matlab
assignment order with a methodical approach to solution. Our network span is not restricted to US, UK and Australia rather extends to countries like Singapore, Canada and UAE. Our Matlab assignment help services
include Image Processing Assignments, Electrical Engineering Assignments, Matlab homework help, Matlab Research Paper help, Matlab Simulink help. Get your work
done at the best price in industry.