Copyright | (c) David A Roberts 2015-2021 |
---|---|
License | GPL-3 |
Maintainer | d@vidr.cc |
Stability | experimental |
Safe Haskell | None |
Language | Haskell2010 |
Language.Stan
Description
Synopsis
- data StanMethod = StanSample {}
- data StanHMCMetric
- data StanHMCEngine
- = StanStaticHMCEngine { }
- | StanNUTSEngine { }
- defaultStanMethod :: StanMethod
- hmcStan :: ExprTuple t => Int -> P t -> IO [t]
- hmcStanInit :: ExprTuple t => Int -> P t -> t -> IO [t]
- runStan :: ExprTuple t => StanMethod -> P t -> Maybe t -> IO [t]
Documentation
data StanMethod #
Constructors
StanSample | |
Fields
|
Instances
Show StanMethod # | |
Defined in Language.Stan Methods showsPrec :: Int -> StanMethod -> ShowS # show :: StanMethod -> String # showList :: [StanMethod] -> ShowS # |
data StanHMCMetric #
Constructors
StanUnitEMetric | |
StanDiagEMetric | |
StanDenseEMetric |
Instances
Show StanHMCMetric # | |
Defined in Language.Stan Methods showsPrec :: Int -> StanHMCMetric -> ShowS # show :: StanHMCMetric -> String # showList :: [StanHMCMetric] -> ShowS # |
data StanHMCEngine #
Constructors
StanStaticHMCEngine | |
StanNUTSEngine | |
Instances
Show StanHMCEngine # | |
Defined in Language.Stan Methods showsPrec :: Int -> StanHMCEngine -> ShowS # show :: StanHMCEngine -> String # showList :: [StanHMCEngine] -> ShowS # |
defaultStanMethod :: StanMethod #
default Stan configuration, see https://github.com/stan-dev/cmdstan/releases/download/v2.18.0/cmdstan-guide.pdf
hmcStan :: ExprTuple t => Int -> P t -> IO [t] #
perform Hamiltonian Monte Carlo inference on the given posterior program, via the Stan code generation backend, returning the given number of samples
see runStan
for a more advanced interface