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

#include <histogram.h>

Inheritance diagram for Histogram2D:

Public Member Functions

 Histogram2D (size_t n[2])
 ~Histogram2D ()
void mpi_reduce ()
void save (const char *filename) const
void load (const char *filename)
virtual void addValue (Vec2d value, double weight=1.)=0
double operator() (int x, int y)

Protected Attributes

size_t num_bins [2]
double * bins

Detailed Description

Definition at line 134 of file histogram.h.

Constructor & Destructor Documentation

◆ Histogram2D()

Histogram2D::Histogram2D ( size_t n[2])
inline

Definition at line 137 of file histogram.h.

Here is the caller graph for this function:

◆ ~Histogram2D()

Histogram2D::~Histogram2D ( )
inline

Definition at line 144 of file histogram.h.

Member Function Documentation

◆ addValue()

virtual void Histogram2D::addValue ( Vec2d value,
double weight = 1. )
pure virtual

◆ load()

void Histogram2D::load ( const char * filename)

Definition at line 129 of file histogram.cpp.

◆ mpi_reduce()

void Histogram2D::mpi_reduce ( )
inline

Definition at line 149 of file histogram.h.

◆ operator()()

double Histogram2D::operator() ( int x,
int y )
inline

Definition at line 168 of file histogram.h.

◆ save()

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

Definition at line 106 of file histogram.cpp.

Here is the call graph for this function:

Member Data Documentation

◆ bins

double* Histogram2D::bins
protected

Definition at line 174 of file histogram.h.

◆ num_bins

size_t Histogram2D::num_bins[2]
protected

Definition at line 173 of file histogram.h.


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