Liking cljdoc? Tell your friends :D

anglican.emit

Top-level forms for Anglican programs

Top-level forms for Anglican programs
raw docstring

$compclj

($comp $cont $state & funs)

comp in CPS

comp in CPS
sourceraw docstring

$conditionalclj

($conditional cont $state & condargs)

conditional returning CPS-transformed function

conditional returning CPS-transformed function
sourceraw docstring

$filterclj

($filter $cont $state fun lst)

filter in CPS

filter in CPS
sourceraw docstring

$mapclj

($map $cont $state fun & lsts)

map in CPS

map in CPS
sourceraw docstring

$map1clj

($map1 $cont $state fun lst)

map on a single sequence

map on a single sequence
sourceraw docstring

$nils?clj

($nils? $cont $state lst)

true if the list contains nil

true if the list contains nil
sourceraw docstring

$partialclj

($partial $cont $state fun & bound)

partial in CPS

partial in CPS
sourceraw docstring

$reduceclj

($reduce $cont $state fun & args)

reduce in CPS

reduce in CPS
sourceraw docstring

$reduce1clj

($reduce1 $cont $state fun init lst)

reduce with explicit init in CPS

reduce with explicit init in CPS
sourceraw docstring

$repeatedlyclj

($repeatedly $cont $state n thunk)

repeatedly in CPS

repeatedly in CPS
sourceraw docstring

$someclj

($some $cont $state fun lst)

some in CPS

some in CPS
sourceraw docstring

anglicancljmacrodeprecated

(anglican & args)

macro for embedding anglican programs

macro for embedding anglican programs
sourceraw docstring

conditionalclj

(conditional query & options)

accepts an Anglican query and returns a conditional distribution defined by the query

accepts an Anglican query and returns
a conditional distribution defined by the query
sourceraw docstring

cps-fncljmacrodeprecated

(cps-fn & args)

legacy name for fm

legacy name for fm
sourceraw docstring

def-cps-fncljmacrodeprecated

(def-cps-fn & args)

legacy name for defm

legacy name for defm
sourceraw docstring

defanglicancljmacrodeprecated

(defanglican name & args)

binds variable to anglican program

binds variable to anglican program
sourceraw docstring

defmcljmacro

(defm name & args)

Binds a variable to an anglican function. The syntax is the same as for `defn' with a single parameter list:

(defm variable-name optional-doc-string [parameter ...]
   anglican-expression ...)

A `defm' declaration is a shortcut for:

(def variable-name optional-doc-string
   (fm variable-name [parameter ...]
       anglican-expression ...))
Binds a variable to an anglican function. The syntax is the same as for
`defn' with a single parameter list:

    (defm variable-name optional-doc-string [parameter ...]
       anglican-expression ...)

A `defm' declaration is a shortcut for:

    (def variable-name optional-doc-string
       (fm variable-name [parameter ...]
           anglican-expression ...))
sourceraw docstring

defquerycljmacro

(defquery name & args)

Binds variable to an anglican query. Syntax:

(defquery variable-name optional-doc-string optional-parameter
  anglican-expression ...)

A defquery declaration is a shortcut for

(def variable-name optional-doc-string
  (query optional-parameter
    anglican-expression ...)
Binds variable to an anglican query. Syntax:

    (defquery variable-name optional-doc-string optional-parameter
      anglican-expression ...)

A defquery declaration is a shortcut for

    (def variable-name optional-doc-string
      (query optional-parameter
        anglican-expression ...)
sourceraw docstring

defuncljmacrodeprecated

(defun name & args)

binds variable to function in Anglican syntax

binds variable to function in Anglican syntax
sourceraw docstring

fmcljmacro

(fm & args)

Defines an anglican function outside of anglican code. The syntax is the same as of `fn' with a single parameter list:

(fm optional-name [parameter ...] anglican-expression ...)

Defines an anglican function outside of anglican code.
The syntax is the same as of `fn' with a single parameter list:

   (fm optional-name [parameter ...] 
      anglican-expression ...)
sourceraw docstring

lambdacljmacrodeprecated

(lambda & args)

defines function in Anglican syntax

defines function in Anglican syntax
sourceraw docstring

memcljmacro

(mem & args)

creates a memoized computation in CPS form

creates a memoized computation in CPS form
sourceraw docstring

querycljmacro

(query & args)

Defines an anglican query. Syntax:

(query optional-parameter anglican-expression ...)

Example:

(query (let [x (sample (normal 0 10))] (observe (normal 1 1) x) (predict x)))

query' returns a value that can be passed as the second argument toanglican.infer/infer'. An optional parameter can be specified and must either a symbol or a vector, in which case the initial value passed to the query is destructured to the parameter:

(query [mean sd] (let [x (sample (normal mean sd))] (predict x)))

Defines an anglican query. Syntax:

   (query optional-parameter 
     anglican-expression ...)

Example:

   (query
     (let [x (sample (normal 0 10))]
        (observe (normal 1 1) x)
        (predict x)))

`query' returns a value that can be passed as the second
argument to `anglican.infer/infer'. An optional parameter can
be specified and must either a symbol or a vector, in which
case the initial value passed to the query is destructured to
the parameter:

   (query [mean sd]
      (let [x (sample (normal mean sd))]
        (predict x)))
sourceraw docstring

with-primitive-procedurescljmacro

(with-primitive-procedures procedures & body)

binds primitive procedure names to their CPS versions; if procedure name is qualified, it becomes unqualified in the scope of the macro

binds primitive procedure names to their CPS versions;
if procedure name is qualified, it becomes unqualified in
the scope of the macro
sourceraw docstring

cljdoc is a website building & hosting documentation for Clojure/Script libraries

× close