Add two states with the same structure, used in weighted mean
Use getCredibleInterval to get all credible intervals of a state
Use getCredibleInterval to get all credible intervals of a state
a vector of states
the interval for the probability interval between [0,1]
a sequence of tuples, (lower, upper) corresponding to each state reading
Get the credible intervals of the nth state vector
Get the credible intervals of the nth state vector
a State
a reference to a node of state tree, counting from 0 on the left
the probability interval size
a tuple of doubles, (lower, upper)
Given a distribution over State, calculate credible intervals by repeatedly drawing from the distribution and ordering the samples
Get the node element at position n from the left, indexed from 0
Get the node element at position n from the left, indexed from 0
the node position from the left
Determines if a state contains
Maps all the values contained inside of all leaf nodes
Maps all the values contained inside of all leaf nodes
a given tree of states
a function from a vector to a vector, usually defined using map, eg. x => x map (_ + 1)
the state in the same structure only changed by the provided f
Calculate the mean of a state
Calculate the weighted mean of a list of States
Calculate the weighted mean of a list of States
a list of States
their associated weights
the weighted mean