dist.unique.events: Trim probability distribution to unique events with positive...

Description Usage Arguments Details Value Examples

Description

Trim probability distribution to unique events with positive probability

Usage

1

Arguments

dist

list with named numeric vectors x and fx, denoting respectively the events and probabilities of the discrete distribution.

Details

The function reduces x to the unique values and sums the corresponding elements from fx.

Value

list with named numeric vectors x and fx, denoting respectively the events and probabilities of the discrete distribution.

Examples

1
dist.unique.events(list(x=c(0,1,1,2),fx=c(0.2,0.25,0.15,0.4)))

DNAprofiles documentation built on Jan. 15, 2017, 9:27 p.m.