Xmipp
v3.23.11-Nereus
|
#include <math.h>
#include <stdlib.h>
#include <stdio.h>
#include <fstream>
#include <algorithm>
#include "histogram.h"
#include "metadata_vec.h"
#include "metadata_row_vec.h"
Go to the source code of this file.
Macros | |
#define | INTERP(x, x0, y0, xF, yF) (y0+(x-x0)*(yF-y0)/(xF-x0)) |
#define | COMPUTEHIST(type) compute_hist(MULTIDIM_ARRAY_TYPE(v,type),hist,min,max,no_steps); |
Functions | |
std::ostream & | operator<< (std::ostream &o, const Histogram1D &hist) |
double | detectability_error (const Histogram1D &h1, const Histogram1D &h2) |
double | KLDistance (const Histogram1D &h1, const Histogram1D &h2) |
std::ostream & | operator<< (std::ostream &_out, const IrregularHistogram1D &_hist) |
std::ostream & | operator<< (std::ostream &o, const Histogram2D &hist) |
void | compute_hist (const MultidimArrayGeneric &array, Histogram1D &hist, int no_steps) |
void | compute_hist (const MultidimArrayGeneric &v, Histogram1D &hist, double min, double max, int no_steps) |
#define COMPUTEHIST | ( | type | ) | compute_hist(MULTIDIM_ARRAY_TYPE(v,type),hist,min,max,no_steps); |
Definition at line 278 of file histogram.cpp.
std::ostream& operator<< | ( | std::ostream & | o, |
const Histogram1D & | hist | ||
) |
Show an histogram
The first column is the value associated to each histogram measure. The second one is the histogram measure.
Definition at line 115 of file histogram.cpp.
std::ostream& operator<< | ( | std::ostream & | _out, |
const IrregularHistogram1D & | _hist | ||
) |
Definition at line 457 of file histogram.cpp.
std::ostream& operator<< | ( | std::ostream & | o, |
const Histogram2D & | hist | ||
) |
Show an histogram
The first column and second column are the (X,Y) coordinates of each histogram measure. The third one is the histogram measure.
Definition at line 545 of file histogram.cpp.