Curve-class: Curve Class for defining distributions
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.
Arguments
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.
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.
# NOT RUN {new("Curve", type="ExampleCurve",PDF="name_of_pdf_function",CDF="name_of_CDF_function",
RF="name_of_random_draw_function", paramno=2,pnames=c('param1','param2'),pvalue=list(1,2))
# }