tttrlib
A library for time-tagged time resolved data
Loading...
Searching...
No Matches
Classes | Functions
Histogram.h File Reference
#include <algorithm>
#include <vector>
#include <cstdio>
#include <string.h>
#include <string>
#include <map>
#include <cmath>
#include "HistogramAxis.h"

Go to the source code of this file.

Classes

class  Histogram< T >
 

Functions

void bincount1D (int *data, int n_data, int *bins, int n_bins)
 
template<typename T >
void histogram1D (T *data, int n_data, double *weights, int n_weights, T *bin_edges, int n_bins, double *hist, int n_hist, const char *axis_type, bool use_weights)
 

Function Documentation

◆ bincount1D()

void bincount1D ( int * data,
int n_data,
int * bins,
int n_bins )

◆ histogram1D()

template<typename T >
void histogram1D ( T * data,
int n_data,
double * weights,
int n_weights,
T * bin_edges,
int n_bins,
double * hist,
int n_hist,
const char * axis_type,
bool use_weights )
Template Parameters
T
Parameters
data
n_data
weights
n_weights
bin_edgescontains the edges of the histogram in ascending order (from small to large)
n_binsthe number of bins in the histogram
hist
n_hist
axis_type
use_weightsif true the weights specified by
weightsare used for the calculation of the histogram instead of simply counting the frequency.