Learn R Programming

poweRlaw (version 0.20.1)

conpl: Heavy-tailed distributions

Description

The poweRlaw package supports a number of distributions: [object Object],[object Object],[object Object],[object Object],[object Object],[object Object],[object Object] Each object inherits the discrete_distribution or the ctn_distribution class.

Usage

conpl(...)

conlnorm(...)

conexp(...)

displ(...)

dislnorm(...)

dispois(...)

disexp(...)

Arguments

Value

a reference object

docType

class

Examples

Run this code
##############################################################
#Load data and create distribution object                    #
##############################################################
data(moby)
m = displ$new(moby)

##############################################################
#Xmin is initially the smallest x value                      #
##############################################################
m$getXmin()
m$getPars()

##############################################################
#Set Xmin and parameter                                      #
##############################################################
m$setXmin(2)
m$setPars(2)

##############################################################
#Plot the data and fitted distribution                       #
##############################################################
plot(m)
lines(m)

Run the code above in your browser using DataLab