hbayes-0.5.2: Bayesian Networks

Safe HaskellNone
LanguageHaskell2010

Bayes.Factor.CPT

Contents

Description

Conditional probability table

Conditional Probability Tables and Probability tables

Synopsis

CPT Factor

type CPT = PrivateCPT Vector Double Source

changeVariableOrder Source

Arguments

:: DVSet s

Old order

-> DVSet s'

New order

-> [Double]

Old values

-> [Double]

New values

Soft evidence factor can be used to initialize a factor instance Distribution CPT where createFactor dvs f = factorWithVariables dvs (factorToList f)

Tests

testScale_prop :: Double -> CPT -> Bool Source

Test product followed by a projection when the factors have no common variables

debugCPT :: (Show a, Show (t a)) => PrivateCPT t a -> IO () Source