Liking cljdoc? Tell your friends :D

anglican.state

Inference state

Inference state
raw docstring

add-log-weightclj/s

(add-log-weight state log-weight)

add log-weight to the accumulated log-weight in the state

add log-weight to the accumulated log-weight
in the state
sourceraw docstring

add-predictclj/s

(add-predict state label value)

add predict label and value to the list of predicts

add predict label and value to the list of predicts
sourceraw docstring

clear-predictsclj/s

(clear-predicts state)

clear predicts

clear predicts
sourceraw docstring

current-catch-contclj/s

(current-catch-cont state)

returns current catch continuation of the catch stack

returns current catch continuation of the catch stack
sourceraw docstring

get-log-weightclj/s

(get-log-weight state)

get accumulated log-weight

get accumulated log-weight
sourceraw docstring

get-memclj/s

(get-mem state id args)

retrieves memoized function call

retrieves memoized function call
sourceraw docstring

get-predictsclj/s

(get-predicts state)

returns collected predicts as an array map

returns collected predicts as an array map
sourceraw docstring

get-resultclj/s

(get-result state)

Returns the result value of the state.

Returns the result value of the state.
sourceraw docstring

in-mem?clj/s

(in-mem? state id args)

true when the function call is memoized

true when the function call is memoized
sourceraw docstring

initial-stateclj/s

initial program state

initial program state
sourceraw docstring

pop-catchclj/s

(pop-catch state)

pops catch from the catch stack, returns updated state

pops catch from the catch stack, returns updated state
sourceraw docstring

pop-catch-until-tagclj/s

(pop-catch-until-tag state tag)

pops continuations off the catch stack until the topmost continuation matches the tag

pops continuations off the catch stack until the topmost continuation
matches the tag
sourceraw docstring

push-catchclj/s

(push-catch state tag cont)

pushes catch continuation and catch tag to the catch stack, returns updated state

pushes catch continuation and catch tag to the catch stack, returns updated
state
sourceraw docstring

retrieveclj/s

(retrieve state & keys)

retrieves store contents

retrieves store contents
sourceraw docstring

set-log-weightclj/s

(set-log-weight state log-weight)

resets the weight to the specified value

resets the weight to the specified value
sourceraw docstring

set-memclj/s

(set-mem state id args value)

stores memoized result of function call, returns the update state

stores memoized result of function call,
returns the update state
sourceraw docstring

set-resultclj/s

(set-result state value)

Sets the result value for the state.

Sets the result value for the state.
sourceraw docstring

storeclj/s

(store state & args)

updates the store with a new value

updates the store with a new value
sourceraw docstring

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

× close