geometricdens

Calculates the probability density function (PDF) for the geometric distribution function for inputted parameters. Depending on input, function can return scalar, vector or matrix

Arguments

  1. Positive integer k, number of independent trials
  2. Success probability p, real value in (0,1]

Output

Resulting value in [0,1]

Examples

geometricdens