Cytnx v0.7.6
Loading...
Searching...
No Matches
Public Member Functions | Public Attributes | List of all members
cytnx::stat::Histogram Class Reference

1D, real value histogram More...

#include <stat.hpp>

Collaboration diagram for cytnx::stat::Histogram:
Collaboration graph
[legend]

Public Member Functions

 Histogram (const unsigned long long &Nbins, const double &min_val, const double &max_val)
 initialize a histogram
 
void clear_vars ()
 
template<class T >
void accumulate (const std::vector< T > &data)
 
void normalize ()
 
void print () const
 
const Storageget_x () const
 
Storageget_x ()
 
cytnx_uint64 size ()
 

Public Attributes

double min
 
double max
 
uint64_t bins
 
cytnx::Storage vars
 
cytnx::Storage x
 
double total_count
 

Detailed Description

1D, real value histogram

Constructor & Destructor Documentation

◆ Histogram()

cytnx::stat::Histogram::Histogram ( const unsigned long long &  Nbins,
const double &  min_val,
const double &  max_val 
)

initialize a histogram

Member Function Documentation

◆ accumulate()

template<class T >
void cytnx::stat::Histogram::accumulate ( const std::vector< T > &  data)
inline

◆ clear_vars()

void cytnx::stat::Histogram::clear_vars ( )
inline

◆ get_x() [1/2]

Storage & cytnx::stat::Histogram::get_x ( )
inline

◆ get_x() [2/2]

const Storage & cytnx::stat::Histogram::get_x ( ) const
inline

◆ normalize()

void cytnx::stat::Histogram::normalize ( )

◆ print()

void cytnx::stat::Histogram::print ( ) const

◆ size()

cytnx_uint64 cytnx::stat::Histogram::size ( )
inline

Member Data Documentation

◆ bins

uint64_t cytnx::stat::Histogram::bins

◆ max

double cytnx::stat::Histogram::max

◆ min

double cytnx::stat::Histogram::min

◆ total_count

double cytnx::stat::Histogram::total_count

◆ vars

cytnx::Storage cytnx::stat::Histogram::vars

◆ x

cytnx::Storage cytnx::stat::Histogram::x

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