qif.probab¶
Probability distributions.
- qif.probab.assert_proper(*args, **kwargs)¶
Overloaded function.
assert_proper(pi: Row<double>) -> None
assert_proper(pi: Row<rat>) -> None
- qif.probab.from_grid(*args, **kwargs)¶
Overloaded function.
from_grid(grid: Mat<double>) -> Row<double>
from_grid(grid: Mat<rat>) -> Row<rat>
- qif.probab.is_proper(*args, **kwargs)¶
Overloaded function.
is_proper(pi: Row<double>, mrd: float = 2.220446049250313e-14) -> bool
is_proper(pi: Row<rat>, mrd: mppp::rational<1> = Fraction(0, 1)) -> bool
- qif.probab.is_uniform(*args, **kwargs)¶
Overloaded function.
is_uniform(pi: Row<double>, mrd: float = 2.220446049250313e-14) -> bool
is_uniform(pi: Row<rat>, mrd: mppp::rational<1> = Fraction(0, 1)) -> bool
- qif.probab.normalize(*args, **kwargs)¶
Overloaded function.
normalize(pi: Row<double>) -> Row<double>
normalize(pi: Row<rat>) -> Row<rat>
- qif.probab.point(*args, **kwargs)¶
Overloaded function.
point(n_elem: int, x: int = 0, type: class[double] = 1) -> Row<double>
point(n_elem: int, x: int = 0, type: class[fraction] = 1) -> Row<rat>
- qif.probab.randu(*args, **kwargs)¶
Overloaded function.
randu(n_elem: int, type: class[double] = 1) -> Row<double>
randu(n_elem: int, type: class[fraction] = 1) -> Row<rat>
- qif.probab.sample(*args, **kwargs)¶
Overloaded function.
sample(pi: Row<double>) -> int
sample(pi: Row<rat>) -> int
sample(pi: Row<double>, n_samples: int) -> Row<uint>
sample(pi: Row<rat>, n_samples: int) -> Row<uint>
- qif.probab.to_grid(*args, **kwargs)¶
Overloaded function.
to_grid(pi: Row<double>, width: int) -> Mat<double>
to_grid(pi: Row<rat>, width: int) -> Mat<rat>
- qif.probab.uniform(*args, **kwargs)¶
Overloaded function.
uniform(n_elem: int, type: class[double] = 1) -> Row<double>
uniform(n_elem: int, type: class[fraction] = 1) -> Row<rat>