|
MINT2
|
#include <Weights.h>
Public Member Functions | |
| Weights () | |
| Weights (double weight) | |
| int | numWeights () const |
| const std::vector< double > & | getWeightsVector () |
| void | printWeight (std::ostream &os=std::cout, int endline=1) const |
| double | getWeight (int i=0) const |
| void | setWeight (int i, double w) |
| void | setWeight (double w) |
| void | addWeight (const double &weight) |
| virtual | ~Weights () |
Protected Attributes | |
| std::vector< double > | _weights |
HyperPlot, Author: Sam Harnew, sam.harnew@gmail.com , Date: Dec 2015
Holds a vector of weights that is associtated to a HyperPoint via inheritance (sometimes useful to have more than one for systematic studies)
| Weights::Weights | ( | ) |
| Weights::Weights | ( | double | weight | ) |
Construct instance with a single weight (probably the most used scenario)
Definition at line 12 of file Weights.cpp.
|
virtual |
Definition at line 75 of file Weights.cpp.
| void Weights::addWeight | ( | const double & | weight | ) |
| double Weights::getWeight | ( | int | i = 0 | ) | const |
Get weight i. If no weights exist just return 1.0.
Definition at line 40 of file Weights.cpp.
|
inline |
| int Weights::numWeights | ( | ) | const |
| void Weights::printWeight | ( | std::ostream & | os = std::cout, |
| int | endline = 1 |
||
| ) | const |
| void Weights::setWeight | ( | int | i, |
| double | w | ||
| ) |
Set weight i to specified value - if this weight doesn't yet exist, keep adding weights of 1.0 until it does
Definition at line 52 of file Weights.cpp.
| void Weights::setWeight | ( | double | w | ) |
|
protected |
1.8.15