sort.nppois: Sorting of an Object of Class 'nppois'

View source: R/nppois.R

sort.nppoisR Documentation

Sorting of an Object of Class nppois

Description

Function sort.nppois sorts an object of class nppois in the order of the obsersed values.

Usage

## S3 method for class 'nppois'
sort(x, decreasing = FALSE, ...)

Arguments

x

an object of class nppois.

decreasing

logical, in the decreasing (default) or increasing order.

...

arguments passed to function order.

Examples


mix = disc(pt=c(0,4), pr=c(0.3,0.7))  # a discrete distribution
x = rnppois(20, mix)
sort(x)

 

nspmix documentation built on June 8, 2025, 12:29 p.m.

Related to sort.nppois in nspmix...