Curve-class: Curve Class for defining distributions

Description Slots Author(s) Examples

Description

This class allows distributions to be defined. It contains all information needed to reproduce a distribution.
References to functions that store the PDF, CDF and random number generator.
Parameters are also stored.

Slots

type

Type of Curve (character). Typically the distribution name.

PDF

Name of the PDF function describing the Curve.

CDF

Name of the CDF function describing the Curve.

RF

Name of the random generator function describing the Curve.

inverse

Name of the inverse CDF function describing the Curve. Optional; set to NULL if unavailable.

paramno

Number of parameters required to define the distribution.

pnames

Names of parameters defining the distribution. Should be a vector of length paramno.

pvalue

Values of parameters defining the distribution. Should be a list of length paramno.

Author(s)

James Bell

Examples

1
2
3
new("Curve", type="ExampleCurve",PDF="pdf_fn_name",CDF="CDF_fn_name",
  RF="random_draw_fn_name", inverse="inv_fn_name",paramno=2,pnames=c('param1','param2'),
  pvalue=list(1,2))

gestate documentation built on Feb. 20, 2020, 5:08 p.m.