charles-river-analytics / figaro

Figaro Programming Language and Core Libraries
Other
756 stars 151 forks source link

Changes to ensure factors are normalized in expectation when sampling factors #736

Closed bruttenberg closed 6 years ago

bruttenberg commented 6 years ago

Added a normalizing term to ValueSet so that when factors are created, we can pull this normalizing factor and multiply it into the sampled factors.