#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.
|
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) |
|
◆ 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
-
- Parameters
-
data | |
n_data | |
weights | |
n_weights | |
bin_edges | contains the edges of the histogram in ascending order (from small to large) |
n_bins | the number of bins in the histogram |
hist | |
n_hist | |
axis_type | |
use_weights | if true the weights specified by |
weights | are used for the calculation of the histogram instead of simply counting the frequency. |