CARTA Backend
The backend component of CARTA
Loading...
Searching...
No Matches
carta::Histogram Class Reference

#include <Histogram.h>

Collaboration diagram for carta::Histogram:
[legend]

Public Member Functions

 Histogram ()=default
 
 Histogram (int num_bins, const HistogramBounds &bounds, const float *data, const size_t data_size)
 
 Histogram (const Histogram &h)
 
bool Add (const Histogram &h)
 
float GetMinVal () const
 
float GetMaxVal () const
 
HistogramBounds GetBounds () const
 
size_t GetNbins () const
 
float GetBinWidth () const
 
float GetBinCenter () const
 
const std::vector< int > & GetHistogramBins () const
 
void SetHistogramBins (const std::vector< int > &)
 

Private Member Functions

void Fill (const float *data, const size_t data_size)
 

Static Private Member Functions

static bool ConsistencyCheck (const Histogram &, const Histogram &)
 

Private Attributes

float _min_val
 
float _max_val
 
float _bin_width
 
float _bin_center
 
std::vector< int > _histogram_bins
 

Constructor & Destructor Documentation

◆ Histogram() [1/3]

carta::Histogram::Histogram ( )
default

◆ Histogram() [2/3]

Histogram::Histogram ( int  num_bins,
const HistogramBounds bounds,
const float *  data,
const size_t  data_size 
)
Here is the call graph for this function:

◆ Histogram() [3/3]

Histogram::Histogram ( const Histogram h)

Member Function Documentation

◆ Add()

bool Histogram::Add ( const Histogram h)
Here is the call graph for this function:
Here is the caller graph for this function:

◆ ConsistencyCheck()

bool Histogram::ConsistencyCheck ( const Histogram a,
const Histogram b 
)
staticprivate
Here is the call graph for this function:
Here is the caller graph for this function:

◆ Fill()

void Histogram::Fill ( const float *  data,
const size_t  data_size 
)
private
Here is the call graph for this function:
Here is the caller graph for this function:

◆ GetBinCenter()

float carta::Histogram::GetBinCenter ( ) const
inline
Here is the caller graph for this function:

◆ GetBinWidth()

float carta::Histogram::GetBinWidth ( ) const
inline
Here is the caller graph for this function:

◆ GetBounds()

HistogramBounds carta::Histogram::GetBounds ( ) const
inline
Here is the caller graph for this function:

◆ GetHistogramBins()

const std::vector< int > & carta::Histogram::GetHistogramBins ( ) const
inline
Here is the caller graph for this function:

◆ GetMaxVal()

float carta::Histogram::GetMaxVal ( ) const
inline
Here is the caller graph for this function:

◆ GetMinVal()

float carta::Histogram::GetMinVal ( ) const
inline
Here is the caller graph for this function:

◆ GetNbins()

size_t carta::Histogram::GetNbins ( ) const
inline
Here is the caller graph for this function:

◆ SetHistogramBins()

void Histogram::SetHistogramBins ( const std::vector< int > &  bins)

Member Data Documentation

◆ _bin_center

float carta::Histogram::_bin_center
private

◆ _bin_width

float carta::Histogram::_bin_width
private

◆ _histogram_bins

std::vector<int> carta::Histogram::_histogram_bins
private

◆ _max_val

float carta::Histogram::_max_val
private

◆ _min_val

float carta::Histogram::_min_val
private

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