channel

package
v0.0.0-...-d568a9c Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 6, 2016 License: Apache-2.0 Imports: 2 Imported by: 0

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

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL