| Library: | graphic |
| See also: | pdfbin cdfbin randbin |
| Macro: | grbinomial | |
| Description: | generates a graphical object which represents the probability function of a binomial distribution B(n,p) |
| Usage: | grbin = grbinomial (n, p {, col}) | |
| Input: | ||
| n | scalar parameter of binomial distribution | |
| p | scalar parameter of binomial distribution | |
| col | color vector | |
| Output: | ||
| grbin | graphical object | |
; load the library graphic
library ("graphic")
; generate a graph of B(3, 0.5)
gr = grbinomial (3, 0.5)
plot (gr)
shows the binomial prob func for B(3, 0.5)
| Library: | graphic |
| See also: | pdfbin cdfbin randbin |