Endil

Untitled

Dec 30th, 2015
79
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.43 KB | None | 0 0
  1. CreateDocument[{
  2. DynamicModule[{x = 100}, {
  3. Grid[{{
  4. TextCell@"Choose Distribution:",
  5. PopupMenu[
  6. Dynamic@dist, {NormalDistribution -> Normal,
  7. PoissonDistribution -> Poisson}]
  8. },
  9. {TextCell@"Number of samples:",
  10. InputField[Dynamic[x], Number, ImageSize -> 100]
  11. }
  12. }
  13. ],
  14. }
  15. ],
  16. Button["Buton", Histogram[RandomVariate[dist[1, 3], x]]]
  17. }
  18. ]
Advertisement
Add Comment
Please, Sign In to add comment