rbsb4.empirical-class: Class /empirical/ to empirically specify a probability...

Description Objects from the Class Slots Methods Author(s) Examples

Description

Objects of class /empirical/ gives the possibility to store in a standardized way, all necessary pieces of information about the empirical definition of a probability distribution by means of weights at given values and/or a continuous density linearly piecewise defined. These distributions can easily be truncated only by changing their support. The final user does not have to bother about real (summing to one) probability : the normalize8empirical function was written for this purpose.

Objects from the Class

Objects can be created by calls of the form new("empirical",...).

Slots

des:

Object of class "des" describing the object.

sup:

Object of class "numeric(2)" providing the support for the random variable.

repa:

Object of class "numeric(2)" giving the proportion of the discrete (@repa[1]) part and the continuous (@repa[2]) one.

xw:

A matrix with two columns, each row being dedicated to a weight: @xw[,1] for the random variable values and @xw[,2] for the associated non negative weights.

xy:

A matrix with two columns, each row being dedicated to a point of the continuous density: @xw[,1] for the random variable values and @xw[,2] for the associated value of the density. The first and last value of the density must be zero

Methods

print:

see print8empirical for the details.

plot:

see plot8empirical for the details.

Author(s)

Jean-Baptiste Denis

Examples

1
2
  rbsb3k("RESET");
  print.default(rbsb.epi5);

rbsb documentation built on May 31, 2017, 1:45 a.m.