![]() |
Fleet
0.0.9
Inference in the LOT
|
A little class that any VirtualMachinePool AND VirtualMachines inherit to control their behavior. NOTE That this is not passed around like Fleet::Control–it is just meant to be a place to set static variables And then it is inherited by VirtualMachinePool. More...
#include "DiscreteDistribution.h"
#include "VirtualMachineControl.h"
#include <vector>
#include <queue>
Go to the source code of this file.
Classes | |
class | VirtualMachinePool< VirtualMachineState_t > |
Functions | |
template<typename VirtualMachineState_t > | |
DiscreteDistribution< typename VirtualMachineState_t::output_t > | marginal_vms_output (std::vector< VirtualMachineState_t > &v) |
Compute the marginal output of a collection of VirtualMachineStates (as we might get from run_vms) More... | |
A little class that any VirtualMachinePool AND VirtualMachines inherit to control their behavior. NOTE That this is not passed around like Fleet::Control–it is just meant to be a place to set static variables And then it is inherited by VirtualMachinePool.
Compare pointers to VirtualMachineStates by their log probability.
This manages a collection of VirtualMachines – this is what handles the enumeration of flip by probability. Basically each machine state stores the state of some evaluator and is able to push things back on to the Q if it encounters a random flip This stores pointers because it is impossible to copy out of std collections, so we are constantly having to call VirtualMachineState constructors. Using pointers speeds us up by about 20%.
DiscreteDistribution<typename VirtualMachineState_t::output_t> marginal_vms_output | ( | std::vector< VirtualMachineState_t > & | v | ) |
Compute the marginal output of a collection of VirtualMachineStates (as we might get from run_vms)
v |