powered by
Function to calculate the probability density of the bessel distribution.
dbessel(z, mu, phi)
scalar (0 < z < 1) for which the p.d.f. is to be evaluated.
scalar representing the mean parameter.
scalar representing the precision parameter.
scalar expressing the value of the density at z.
simdata_bes, dbbtest, simdata_bet
simdata_bes
dbbtest
simdata_bet
# NOT RUN { z = seq(0.01, 0.99, 0.01); np = length(z); density = rep(0, np) for(i in 1:np){ density[i] = dbessel(z[i], 0.5, 1) } plot(z, density, type = "l", lwd = 2, cex.lab = 2, cex.axis = 2) # }
Run the code above in your browser using DataLab