Vlasiator ebf0dd394 on dev (v5.4.0 + 1054 commits)
Loading...
Searching...
No Matches
Histogram1D Class Referenceabstract

#include <histogram.h>

Inheritance diagram for Histogram1D:

Public Member Functions

 Histogram1D (size_t n)
 ~Histogram1D ()
void mpi_reduce ()
void save (const char *filename) const
void load (const char *filename)
virtual void saveAscii (const char *filename) const
virtual void addValue (double value)=0
double operator() (int x)

Protected Attributes

size_t num_bins
double * bins

Detailed Description

Definition at line 35 of file histogram.h.

Constructor & Destructor Documentation

◆ Histogram1D()

Histogram1D::Histogram1D ( size_t n)
inline

Definition at line 38 of file histogram.h.

Here is the caller graph for this function:

◆ ~Histogram1D()

Histogram1D::~Histogram1D ( )
inline

Definition at line 42 of file histogram.h.

Member Function Documentation

◆ addValue()

virtual void Histogram1D::addValue ( double value)
pure virtual

Implemented in LinearHistogram1D, and LogHistogram1D.

◆ load()

void Histogram1D::load ( const char * filename)

Definition at line 84 of file histogram.cpp.

◆ mpi_reduce()

void Histogram1D::mpi_reduce ( )
inline

Definition at line 47 of file histogram.h.

◆ operator()()

double Histogram1D::operator() ( int x)
inline

Definition at line 68 of file histogram.h.

◆ save()

void Histogram1D::save ( const char * filename) const

Definition at line 30 of file histogram.cpp.

Here is the call graph for this function:

◆ saveAscii()

void Histogram1D::saveAscii ( const char * filename) const
virtual

Reimplemented in LinearHistogram1D.

Definition at line 50 of file histogram.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ bins

double* Histogram1D::bins
protected

Definition at line 74 of file histogram.h.

◆ num_bins

size_t Histogram1D::num_bins
protected

Definition at line 73 of file histogram.h.


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