do.calculate.marginal.densities: An internal function for subclasses to calculate a marginal...

do.calculate.marginal.densitiesR Documentation

An internal function for subclasses to calculate a marginal density for each variable in a distribution

Description

This function is provided to be overriden by developers. End users should instead call calculate.marginal.densities

Usage

do.calculate.marginal.densities(dist, x, log = F, n.sim = 1000)

Arguments

dist

An object of class Distribution or a subclass

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

log

A logical indicating whether to return the density on the log scale

n.sim

If the values are to be calculated by random sample generation, how many random samples to generate

Details

By default, implemented only for distributions with only one variable The wrapper calculate.marginal.densities takes care of matching variables (so the 'x' passed to this function is clean) and formatting the return value


tfojo1/distributions documentation built on July 27, 2024, 3:29 p.m.