View source: R/profitUtility.R
profitPoissonMonteCarlo | R Documentation |
A convenience function to generate a random image given an expected number of counts.
profitPoissonMonteCarlo(x)
x |
Numeric; required. A number of counts. All should be >=0. |
For now, this is merely a convenience function to call R's built-in rpois() function. In the future, the implementation should be moved to libprofit.
Returns a random sample from Poisson distributions with means given by x, preserving input dimensions.
Dan Taranu
## Not run:
disk = profitMakeModel(modellist=list(sersic=list(xcen=50,ycen=50,mag=15,re=5,nser=1,
axrat=0.5,ang=125,box=0)))$z
gain = 1e13
magimage(profitPoissonMonteCarlo(disk*gain))
## End(Not run)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.