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
raw 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
raw docstring

clear-predictsclj

(clear-predicts state)

clear predicts

clear predicts
raw docstring

get-log-weightclj

(get-log-weight state)

get accumulated log-weight

get accumulated log-weight
raw docstring

get-memclj

(get-mem state id args)

retrieves memoized function call

retrieves memoized function call
raw docstring

get-predictsclj

(get-predicts state)

returns collected predicts as an array map

returns collected predicts as an array map
raw docstring

get-resultclj

(get-result state)

Returns the result value of the state.

Returns the result value of the state.
raw docstring

in-mem?clj

(in-mem? state id args)

true when the function call is memoized

true when the function call is memoized
raw docstring

initial-stateclj

initial program state

initial program state
raw docstring

retrieveclj

(retrieve state & keys)

retrieves store contents

retrieves store contents
raw docstring

set-log-weightclj

(set-log-weight state log-weight)

resets the weight to the specified value

resets the weight to the specified value
raw 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
raw docstring

set-resultclj

(set-result state value)

Sets the result value for the state.

Sets the result value for the state.
raw docstring

storeclj

(store state & args)

updates the store with a new value

updates the store with a new value
raw docstring

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

× close