Liking cljdoc? Tell your friends :D

anglican.state

Inference state

Inference state
raw docstring

add-log-weightclj

(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

(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

(clear-predicts state)

clear predicts

clear predicts
sourceraw docstring

get-log-weightclj

(get-log-weight state)

get accumulated log-weight

get accumulated log-weight
sourceraw docstring

get-memclj

(get-mem state id args)

retrieves memoized function call

retrieves memoized function call
sourceraw docstring

get-predictsclj

(get-predicts state)

returns collected predicts as an array map

returns collected predicts as an array map
sourceraw docstring

get-resultclj

(get-result state)

Returns the result value of the state.

Returns the result value of the state.
sourceraw docstring

in-mem?clj

(in-mem? state id args)

true when the function call is memoized

true when the function call is memoized
sourceraw docstring

initial-stateclj

initial program state

initial program state
sourceraw docstring

retrieveclj

(retrieve state & keys)

retrieves store contents

retrieves store contents
sourceraw docstring

set-log-weightclj

(set-log-weight state log-weight)

resets the weight to the specified value

resets the weight to the specified value
sourceraw docstring

set-memclj

(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

(set-result state value)

Sets the result value for the state.

Sets the result value for the state.
sourceraw docstring

storeclj

(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