Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Channel ¶
type Channel interface { // Send an input to the channel and sample an output Sample(input variable.RandomVariable) variable.RandomVariable // Send a sequence of inputs and sample an output for each SampleN(inputs []variable.RandomVariable) []variable.RandomVariable // Build factors relating an input variable to a sequence of output variables Factors(input variable.RandomVariable, outputs []variable.RandomVariable) []factor.Factor }
A generic channel: given a message X, it emits a random variable Y derived from X based on the properties of the channel.
type DefChannelSampleN ¶
type DefChannelSampleN struct{ Channel Channel }
A default implementation of SampleN() for a Channel
func (DefChannelSampleN) SampleN ¶
func (def DefChannelSampleN) SampleN(inputs []variable.RandomVariable) []variable.RandomVariable
Directories ¶
Path | Synopsis |
---|---|
* Implements variations on a binary symmetric channel (BSC) with constant noise * rate p, which takes a "true" boolean value X as input and outputs X with * probability (1-p) and outputs !X with probability p.
|
* Implements variations on a binary symmetric channel (BSC) with constant noise * rate p, which takes a "true" boolean value X as input and outputs X with * probability (1-p) and outputs !X with probability p. |
Click to show internal directories.
Click to hide internal directories.