compP-methods: Method 'compP'

compPR Documentation

Method compP

Description

Compute the cdf probability at a given value for a histogram

Usage

compP(object, q)

## S4 method for signature 'distributionH,numeric'
compP(object, q)

Arguments

object

is an object of distributionH class

q

is a numeric value

Value

Returns a value between 0 and 1.

Examples


## ---- A mydist distribution ----
mydist <- distributionH(x = c(1, 2, 3, 10), p = c(0, 0.1, 0.5, 1))
## ---- Compute the cfd value for q=5 (not observed) ----
p <- compP(mydist, 5)

Airpino/HistDAWass documentation built on Jan. 30, 2024, 7:53 p.m.