Fleet  0.0.9
Inference in the LOT
Classes | Functions
DiscreteDistribution.h File Reference

This stores a distribution from values of T to log probabilities. It is used as the return value from calls with randomness. More...

#include <map>
#include <vector>
#include <algorithm>
#include <iostream>
#include <assert.h>
#include <memory>
#include "Miscellaneous.h"
#include "Numerics.h"
#include "IO.h"
#include "Strings.h"
Include dependency graph for DiscreteDistribution.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  DiscreteDistribution< T >
 

Functions

template<typename T >
std::ostream & operator<< (std::ostream &o, const DiscreteDistribution< T > &x)
 
template<typename T >
std::string str (const DiscreteDistribution< T > &a)
 

Detailed Description

This stores a distribution from values of T to log probabilities. It is used as the return value from calls with randomness.

Function Documentation

◆ operator<<()

template<typename T >
std::ostream& operator<< ( std::ostream &  o,
const DiscreteDistribution< T > &  x 
)

◆ str()

template<typename T >
std::string str ( const DiscreteDistribution< T > &  a)