qif.probab

Probability distributions.

qif.probab.assert_proper(*args, **kwargs)

Overloaded function.

  1. assert_proper(pi: Row<double>) -> None

  2. assert_proper(pi: Row<rat>) -> None

qif.probab.from_grid(*args, **kwargs)

Overloaded function.

  1. from_grid(grid: Mat<double>) -> Row<double>

  2. from_grid(grid: Mat<rat>) -> Row<rat>

qif.probab.is_proper(*args, **kwargs)

Overloaded function.

  1. is_proper(pi: Row<double>, mrd: float = 2.220446049250313e-14) -> bool

  2. is_proper(pi: Row<rat>, mrd: mppp::rational<1> = Fraction(0, 1)) -> bool

qif.probab.is_uniform(*args, **kwargs)

Overloaded function.

  1. is_uniform(pi: Row<double>, mrd: float = 2.220446049250313e-14) -> bool

  2. is_uniform(pi: Row<rat>, mrd: mppp::rational<1> = Fraction(0, 1)) -> bool

qif.probab.normalize(*args, **kwargs)

Overloaded function.

  1. normalize(pi: Row<double>) -> Row<double>

  2. normalize(pi: Row<rat>) -> Row<rat>

qif.probab.point(*args, **kwargs)

Overloaded function.

  1. point(n_elem: int, x: int = 0, type: class[double] = 1) -> Row<double>

  2. point(n_elem: int, x: int = 0, type: class[fraction] = 1) -> Row<rat>

qif.probab.randu(*args, **kwargs)

Overloaded function.

  1. randu(n_elem: int, type: class[double] = 1) -> Row<double>

  2. randu(n_elem: int, type: class[fraction] = 1) -> Row<rat>

qif.probab.sample(*args, **kwargs)

Overloaded function.

  1. sample(pi: Row<double>) -> int

  2. sample(pi: Row<rat>) -> int

  3. sample(pi: Row<double>, n_samples: int) -> Row<uint>

  4. sample(pi: Row<rat>, n_samples: int) -> Row<uint>

qif.probab.to_grid(*args, **kwargs)

Overloaded function.

  1. to_grid(pi: Row<double>, width: int) -> Mat<double>

  2. to_grid(pi: Row<rat>, width: int) -> Mat<rat>

qif.probab.uniform(*args, **kwargs)

Overloaded function.

  1. uniform(n_elem: int, type: class[double] = 1) -> Row<double>

  2. uniform(n_elem: int, type: class[fraction] = 1) -> Row<rat>