stats

package module
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: 1 Imported by: 0

README

stats

Statistics and Machine Learning package for golang

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Error

type Error string

An error message

const (
	ErrNotNormalized  Error = "The distribution was not normalized properly"
	ErrZeroProb       Error = "The distribution has zero total probability"
	ErrGraphNotTree   Error = "The factor graph is not a tree"
	ErrDiscreteOnly   Error = "This process currently only supports discrete random variables"
	ErrContinuousOnly Error = "This process currently only supports continuous random variables"
	ErrBernoulliOnly  Error = "This process only supports Bernoulli random variables"
)

func ErrfFactorVarNum

func ErrfFactorVarNum(numVars, numParams, numAdj int) Error

func ErrfInvalidProb

func ErrfInvalidProb(prob float64) Error

func ErrfNotInDomain

func ErrfNotInDomain(outcome int) Error

func ErrfUnsupportedDist

func ErrfUnsupportedDist(dist interface{}) Error

func ErrfValNotInDomain

func ErrfValNotInDomain(value interface{}) Error

func Errorf

func Errorf(message string, args ...interface{}) Error

Format an error string

func (Error) Error

func (err Error) Error() string

Return the error message

Directories

Path Synopsis
app
bsc
* 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.
infer
bp

Jump to

Keyboard shortcuts

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