initialize-Distribution-method: A constructor

initialize,Distribution-methodR Documentation

A constructor

Description

This function is provided for use by developers, and should not be called directly. This function should be called by the subclass constructor. It performs consistency checks on the basic slots for a Distribution object

Usage

## S4 method for signature 'Distribution'
initialize(
  .Object,
  var.names = NULL,
  n.var = length(var.names),
  support = Multivariate.Support(lapply(1:n.var, function(i) {     Continuous.Support()
    })),
  is.improper = F
)

Arguments

var.names, n.var

The name and number of variables in the distribution. var.names may be NULL

subclass

The name of the subclass to be instantiated with a call to 'new'

lower.bounds, upper.bounds

Vectors of lower and upper bounds for each of the variables in the distribution. May be NA

is.discrete, is.improper

Logical vectors indicating whether each variable in the distribution is discrete or improper. If a scalar logical is passed, it is assumed to be the value for all variables in the distribution

...

Other arguments to be passed to the call to 'new'


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