Learn R Programming

distr (version 2.9.5)

makeAbscontDistribution: "makeAbscontDistribution"

Description

Transforms an object of "UnivariateDistribution" to an object of class "makeAbscontDistribution".

Usage

makeAbscontDistribution(object, gaps = NULL,
                       param = NULL, img = NULL,
                   withgaps = getdistrOption("withgaps"),
                   ngrid = getdistrOption("DefaultNrGridPoints"),
                   ep = getdistrOption("TruncQuantile"))

Arguments

object

Objects of class "UnivariateDistribution" (or subclasses)

gaps

slot gaps (of class "matrix" with two columns) to be filled (i.e. t(gaps) must be ordered if read as vector)

param

parameter (of class "OptionalParameter")

img

image range of the distribution (of class "rSpace")

withgaps

logical; shall gaps be reconstructed empirically?

ngrid

number of gridpoints

ep

tolerance epsilon

Author

Peter Ruckdeschel peter.ruckdeschel@uni-oldenburg.de

Details

takes slot p of object and then generates an "AbscontDistribution" object using generating function AbscontDistribution.

Examples

Run this code
  Hu <- Huberize(Norm(), -2,1)
  Hu
  plot(Hu)
  Hu0 <- makeAbscontDistribution(Hu)
  Hu0
  plot(Hu0)

Run the code above in your browser using DataLab