Skip to contents

Sample from the Cauchy distribution

Usage

monty_random_cauchy(location, scale, state)

monty_random_n_cauchy(n_samples, location, scale, state)

Arguments

location

Location of the distribution (the same as the median and mode)

scale

A scale parameter which specifies the half-width at half-maximum (HWHM)

state

The random number state, from monty_rng_create

n_samples

The number of samples to take, per stream. When using the multiple-sample interface, all other parameters are held constant (per stream).

Value

A vector of random numbers, the same length as the number of streams in state.