qif.channel

Channels.

compose

Channel composition.


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

Overloaded function.

  1. assert_proper(C: Mat<double>) -> None

  2. assert_proper(C: Mat<rat>) -> None

qif.channel.deterministic(*args, **kwargs)

Overloaded function.

  1. deterministic(map: Callable[[int], int], n_rows: int, n_cols: int, type: class[double] = 1) -> Mat<double>

  2. deterministic(map: Callable[[int], int], n_rows: int, n_cols: int, type: class[fraction] = 1) -> Mat<rat>

qif.channel.factorize(*args, **kwargs)

Overloaded function.

  1. factorize(A: Mat<double>, B: Mat<double>, col_stoch: bool = False) -> Mat<double>

  2. factorize(A: Mat<rat>, B: Mat<rat>, col_stoch: bool = False) -> Mat<rat>

qif.channel.hyper(*args, **kwargs)

Overloaded function.

  1. hyper(C: Mat<double>, pi: Row<double>) -> Tuple[Row<double>, Mat<double>]

  2. hyper(C: Mat<rat>, pi: Row<rat>) -> Tuple[Row<rat>, Mat<rat>]

qif.channel.identity(*args, **kwargs)

Overloaded function.

  1. identity(n_rows: int, type: class[double] = 1) -> Mat<double>

  2. identity(n_rows: int, type: class[fraction] = 1) -> Mat<rat>

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

Overloaded function.

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

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

qif.channel.iterative_bayesian_update(*args, **kwargs)

Overloaded function.

  1. iterative_bayesian_update(C: Mat<double>, out: Row<double>, start: Row<double> = array([], dtype=float64), max_diff: float = 1e-06, max_iter: int = 0) -> Tuple[Row<double>, int]

  2. iterative_bayesian_update(C: Mat<rat>, out: Row<rat>, start: Row<rat>, max_diff: mppp::rational<1> = 1e-06, max_iter: int = 0) -> Tuple[Row<rat>, int]

qif.channel.left_factorize(*args, **kwargs)

Overloaded function.

  1. left_factorize(A: Mat<double>, B: Mat<double>, col_stoch: bool = False) -> Mat<double>

  2. left_factorize(A: Mat<rat>, B: Mat<rat>, col_stoch: bool = False) -> Mat<rat>

qif.channel.no_interference(*args, **kwargs)

Overloaded function.

  1. no_interference(n_rows: int, n_cols: int = 1, type: class[double] = 1) -> Mat<double>

  2. no_interference(n_rows: int, n_cols: int = 1, type: class[fraction] = 1) -> Mat<rat>

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

Overloaded function.

  1. normalize(C: Mat<double>) -> Mat<double>

  2. normalize(C: Mat<rat>) -> Mat<rat>

qif.channel.posterior(*args, **kwargs)

Overloaded function.

  1. posterior(C: Mat<double>, pi: Row<double>, col: int) -> Row<double>

  2. posterior(C: Mat<rat>, pi: Row<rat>, col: int) -> Row<rat>

qif.channel.posteriors(*args, **kwargs)

Overloaded function.

  1. posteriors(C: Mat<double>, pi: Row<double> = array([], dtype=float64)) -> Mat<double>

  2. posteriors(C: Mat<rat>, pi: Row<rat>) -> Mat<rat>

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

Overloaded function.

  1. randu(n_rows: int, n_cols: int = 0, type: class[double] = 1) -> Mat<double>

  2. randu(n_rows: int, n_cols: int = 0, type: class[fraction] = 1) -> Mat<rat>

qif.channel.reduced(*args, **kwargs)

Overloaded function.

  1. reduced(C: Mat<double>) -> Mat<double>

  2. reduced(C: Mat<rat>) -> Mat<rat>

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

Overloaded function.

  1. sample(C: Mat<double>, pi: Row<double>) -> Tuple[int, int]

  2. sample(C: Mat<rat>, pi: Row<rat>) -> Tuple[int, int]

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

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

qif.channel.sum_column_min(*args, **kwargs)

Overloaded function.

  1. sum_column_min(C: Mat<double>) -> float

  2. sum_column_min(C: Mat<rat>) -> mppp::rational<1>