Learn R Programming

poweRlaw (version 0.20.3)

dist_cdf: The cumulative distribution function (cdf)

Description

This is a generic function for calculating the cumulative distribution function (cdf) of distribution objects. This is similar to base R's pnorm for the normal distribution. The dist_cdf function calculates the cumulative probability distribution for the current parameters and xmin value.

Usage

dist_cdf(m, q = NULL, lower_tail = FALSE, all_values = FALSE)

## S3 method for class 'conexp': dist_cdf(m, q = NULL, lower_tail = TRUE, all_values = FALSE)

## S3 method for class 'conlnorm': dist_cdf(m, q = NULL, lower_tail = TRUE, all_values = FALSE)

## S3 method for class 'conpl': dist_cdf(m, q = NULL, lower_tail = TRUE, all_values = FALSE)

## S3 method for class 'disexp': dist_cdf(m, q = NULL, lower_tail = TRUE, all_values = FALSE)

## S3 method for class 'dislnorm': dist_cdf(m, q = NULL, lower_tail = TRUE, all_values = FALSE)

## S3 method for class 'displ': dist_cdf(m, q = NULL, lower_tail = TRUE, all_values = FALSE)

## S3 method for class 'dispois': dist_cdf(m, q = NULL, lower_tail = TRUE, all_values = FALSE)

Arguments

docType

methods

Examples

Run this code
##########################################
#Load data and create distribution object#
##########################################
data(moby_sample)
m = displ$new(moby_sample)
m$setXmin(7); m$setPars(2)

##########################################
#Calculate the CDF at a particular values#
##########################################
dist_cdf(m, 10:15)

##########################################
#Calculate the CDF at the data values    #
##########################################
dist_cdf(m)

Run the code above in your browser using DataLab