MIDSX 0.1
A x-ray transport code system for dosimetry
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
VectorValue Class Reference

Class which represents a vector quantity. Used by the Tally classes to store simulation data. More...

#include <quantity.h>

Collaboration diagram for VectorValue:

Public Member Functions

VectorValue operator+ (VectorValue &other) const
 
void addValue (double value)
 
void addValues (const std::vector< double > &values)
 
std::vector< double > & getVector ()
 
double getSum ()
 
double getSumSTD ()
 
double getMean ()
 
double getMeanSTD ()
 
double getCount ()
 
double getCountSTD ()
 
double getVariance ()
 

Private Attributes

std::vector< double > values_ = {}
 
double sum_ = 0
 
bool summed_ = false
 
double var_ = 0
 
bool var_calculated_ = false
 

Detailed Description

Class which represents a vector quantity. Used by the Tally classes to store simulation data.

Definition at line 10 of file quantity.h.

Member Data Documentation

◆ sum_

double VectorValue::sum_ = 0
private

Definition at line 28 of file quantity.h.

◆ summed_

bool VectorValue::summed_ = false
private

Definition at line 29 of file quantity.h.

◆ values_

std::vector<double> VectorValue::values_ = {}
private

Definition at line 27 of file quantity.h.

◆ var_

double VectorValue::var_ = 0
private

Definition at line 30 of file quantity.h.

◆ var_calculated_

bool VectorValue::var_calculated_ = false
private

Definition at line 31 of file quantity.h.


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