Liking cljdoc? Tell your friends :D

anglican.emit

Top-level forms for Anglican programs

Top-level forms for Anglican programs
raw docstring

$compclj/s

($comp $cont $state & funs)

comp in CPS

comp in CPS
sourceraw docstring

$conditionalclj/s

($conditional cont $state & condargs)

conditional returning CPS-transformed function

conditional returning CPS-transformed function
sourceraw docstring

$filterclj/s

($filter $cont $state fun lst)

filter in CPS

filter in CPS
sourceraw docstring

$mapclj/s

($map $cont $state fun & lsts)

map in CPS

map in CPS
sourceraw docstring

$map1clj/s

($map1 $cont $state fun lst)

map on a single sequence

map on a single sequence
sourceraw docstring

$nils?clj/s

($nils? $cont $state lst)

true if the list contains nil

true if the list contains nil
sourceraw docstring

$partialclj/s

($partial $cont $state fun & bound)

partial in CPS

partial in CPS
sourceraw docstring

$reduceclj/s

($reduce $cont $state fun & args)

reduce in CPS

reduce in CPS
sourceraw docstring

$reduce1clj/s

($reduce1 $cont $state fun init lst)

reduce with explicit init in CPS

reduce with explicit init in CPS
sourceraw docstring

$repeatedlyclj/s

($repeatedly $cont $state n thunk)

repeatedly in CPS

repeatedly in CPS
sourceraw docstring

$someclj/s

($some $cont $state fun lst)

some in CPS

some in CPS
sourceraw docstring

anglicanclj/smacrodeprecated

(anglican & args)

macro for embedding anglican programs

macro for embedding anglican programs
sourceraw docstring

conditionalclj/s

(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-fnclj/smacrodeprecated

(cps-fn & args)

legacy name for fm

legacy name for fm
sourceraw docstring

def-cps-fnclj/smacrodeprecated

(def-cps-fn & args)

legacy name for defm

legacy name for defm
sourceraw docstring

defanglicanclj/smacrodeprecated

(defanglican name & args)

binds variable to anglican program

binds variable to anglican program
sourceraw docstring

defmclj/smacro

(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

defqueryclj/smacro

(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

defunclj/smacrodeprecated

(defun name & args)

binds variable to function in Anglican syntax

binds variable to function in Anglican syntax
sourceraw docstring

fmclj/smacro

(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

fm*clj/smacro

(fm* name & args)

Helper macro called by fm and defm. The name is mandatory.

Helper macro called by fm and defm. The name is mandatory.
sourceraw docstring

fm-fnclj/s

(fm-fn & args)

Function implementing the fm macro, for unit testing.

Function implementing the fm macro, for unit testing.
sourceraw docstring

lambdaclj/smacrodeprecated

(lambda & args)

defines function in Anglican syntax

defines function in Anglican syntax
sourceraw docstring

memclj/smacro

(mem & args)

creates a memoized computation in CPS form

creates a memoized computation in CPS form
sourceraw docstring

queryclj/smacro

(query & args)

Defines an anglican query. Syntax:

(query optional-name 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-name 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

query*clj/smacro

(query* name & args)

Helper macro called by query and defquery. The name is mandatory.

Helper macro called by query and defquery. The name is mandatory.
sourceraw docstring

query-fnclj/s

(query-fn & args)

Function implementing the query macro, for unit testing.

Function implementing the query macro, for unit testing.
sourceraw docstring

with-primitive-proceduresclj/smacro

(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