DIRAC {convdistr}R Documentation

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")

Arguments

p_scalar

A numeric that set the value for the distribution

p_dimnames

A character that represents the name of the dimension

Value

An object of class DISTRIBUTION, DIRAC

Author(s)

John J. Aponte

Examples

myDistr <- new_DIRAC(1)
myDistr$rfunc(10)

[Package convdistr version 1.6.1 Index]