get.density.function | R Documentation |
A convenience function that packages up a call to calculate.density
on this distribution into its own stand-alone function (which could be passed along as an argument to other functions)
get.density.function(dist, default.log = T, n.sim = 1000)
dist |
An object of class Distribution or a subclass |
default.log |
Whether the returned function should calculate the density on the log scale (by default, the returned function can have a log parameter set explicitly) |
n.sim |
If the values are to be calculated by random sample generation, how many random samples to generate |
A function that takes two arguments. The first, mandatory, is 'x' - the values of the parameters at which to calculate the density. May be either a vector, if the density at a single point is desired, or a matrix where each row represents one point and each column represents a variable in the distribution The second, optional, is 'log' - whether to calculate the density on the log scale. By default, log is set to default.log
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.