dst_geom: Geometric Distribution

View source: R/dst_geom.R

dst_geomR Documentation

Geometric Distribution

Description

Makes a Geometric distribution, corresponding to the number of failures in a sequence of independent trials before observing a success.

Usage

dst_geom(prob)

Arguments

prob

Probability of success in each trial; single numeric between 0 and 1.

Value

A Geometric distribution.

Examples

d <- dst_geom(0.4)

# This version of the Geometric distribution does not count the success.
range(d)

vincenzocoia/distionary documentation built on Feb. 26, 2025, 11:09 a.m.