faunus
Public Member Functions | Friends | List of all members
Faunus::SparseHistogram< T > Class Template Reference

Histogram for an arbitrary set of values using a sparse memory layout (map) More...

#include <sparsehistogram.h>

Public Member Functions

 SparseHistogram (T resolution)
 
const T getResolution () const
 
void add (const T value)
 

Friends

auto & operator<< (std::ostream &stream, const SparseHistogram &histogram)
 

Detailed Description

template<std::floating_point T = double>
class Faunus::SparseHistogram< T >

Histogram for an arbitrary set of values using a sparse memory layout (map)

Builds a histogram by binning given values to a specified resolution. Values are stored in a memory efficient map-structure with log(N) lookup complexity.


The documentation for this class was generated from the following file: