Learn R Programming

convdistr (version 1.6.1)

DIRAC: Factory for a DIRAC distribution object

Description

Returns an DIRAC distribution object that always return the same number, or the same matrix of numbers in case multiple dimensions are setup

Usage

new_DIRAC(p_scalar, p_dimnames = "rvar")

Value

An object of class DISTRIBUTION, DIRAC

Arguments

p_scalar

A numeric that set the value for the distribution

p_dimnames

A character that represents the name of the dimension

Author

John J. Aponte

Examples

Run this code
myDistr <- new_DIRAC(1)
myDistr$rfunc(10)

Run the code above in your browser using DataLab