R/aaa_all_classes.R

distribution = setRefClass("distribution",
                           fields = list(
                             dat = "ANY",
                             internal = "list",
                             xmin = "ANY",
                             pars = "ANY",
                             no_pars = "numeric"))

###############################
# Set get and set methods
# These will be inherited
###############################
distribution$accessors(c("xmin", "pars", "dat", "no_pars"))

#############################################################
# In the plotting functions we do slightly
# different things for continuous and discrete distributions
#############################################################
discrete_distribution = setRefClass("discrete_distribution", contains = "distribution")
ctn_distribution = setRefClass("ctn_distribution", contains = "distribution")

Try the poweRlaw package in your browser

Any scripts or data that you put into this service are public.

poweRlaw documentation built on April 25, 2020, 9:06 a.m.