![]() |
Fleet
0.0.9
Inference in the LOT
|
A TNormalVariable encapsulates MCMC operations on a single real number with a standard normal prior. This is useful for variables in e.g. GrammarInference. This has a normal prior on a parameter and then allows an output transformation, which is cached for speed. More...
Go to the source code of this file.
Classes | |
class | TNormalVariable< f > |
Typedefs | |
using | UniformVariable = TNormalVariable<+[](float x) ->float { return normal_cdf< float >(x, 0.0, 1.0) |
using | ExponentialVariable = TNormalVariable<+[](float x) ->float { return -log(normal_cdf< float >(-x, 0.0, 1.0)) |
A TNormalVariable encapsulates MCMC operations on a single real number with a standard normal prior. This is useful for variables in e.g. GrammarInference. This has a normal prior on a parameter and then allows an output transformation, which is cached for speed.
using ExponentialVariable = TNormalVariable< +[](float x)->float { return -log(normal_cdf<float>(-x, 0.0, 1.0)) |
using UniformVariable = TNormalVariable< +[](float x)->float { return normal_cdf<float>(x, 0.0, 1.0) |