Hyperiso 1.0.3
Modular flavour-physics calculations, Wilson coefficients and statistical inference
Loading...
Searching...
No Matches
BinnedObservableId.h File Reference

Utilities for identifying observables together with numerical bins. More...

#include <bit>
#include <cmath>
#include <cstdint>
#include <cstdlib>
#include <functional>
#include <iomanip>
#include <sstream>
#include <stdexcept>
#include <string>
#include <tuple>
#include <utility>
#include <vector>
#include "observable_ids.hpp"
Include dependency graph for BinnedObservableId.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  EncodedBin
 Integer representation of a decimal bin boundary. More...
 
struct  BinnedObservableId
 Identifies an observable together with a numerical bin. More...
 
struct  std::hash< BinnedObservableId >
 Hash functor specialization for BinnedObservableId. More...
 

Functions

std::ostream & operator<< (std::ostream &os, BinnedObservableId const &id)
 Streams a human-readable binned observable identifier.
 

Detailed Description

Utilities for identifying observables together with numerical bins.

This header defines the BinnedObservableId type and the helper functions used to serialize bin boundaries into an integer-only FLHA/LhaID representation. The encoding is designed to avoid storing raw floating-point values directly inside an LhaID, while still allowing robust reconstruction of the original bin edges up to kMaxBinFracDigits decimal places.

Definition in file BinnedObservableId.h.

Function Documentation

◆ operator<<()

std::ostream & operator<< ( std::ostream &  os,
BinnedObservableId const &  id 
)
inline

Streams a human-readable binned observable identifier.

The stream representation is the same as BinnedObservableId::str(), i.e. "observable [low, high]".

Parameters
osOutput stream.
idBinned observable identifier to print.
Returns
Reference to os.

Definition at line 518 of file BinnedObservableId.h.