-
Notifications
You must be signed in to change notification settings - Fork 2
/
Estimator.h
66 lines (51 loc) · 1.29 KB
/
Estimator.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
/*
* Author: Kyle Beyer
* Last Updated: 11/30/17
*
*/
#ifndef _ESTIMATOR_HEADER_
#define _ESTIMATOR_HEADER_
#include <iostream>
#include <vector>
#include <memory>
using std::vector;
using std::string;
class Estimator {
protected:
double currentHistTally;
double histTally;
double histTallySqr;
public:
Estimator(): currentHistTally(0.0) , histTally(0.0) , histTallySqr(0.0) {};
~Estimator() {};
// set/gets
double getCurrentHistTally() { return( currentHistTally ); };
double getHistTally() { return( histTally ); };
double getHistTallySqr() { return( histTallySqr ); };
// estimator methods
void endHist();
std::pair < double , double > getScalarEstimator(unsigned long long);
// virtual estimator methods
virtual void score( double val);
};
/*
class SurfaceCurrentTally : public Estimator {
public:
SurfaceTally(): Estimator() {};
~SurfaceTally() {};
void score();
};
class SurfaceFluxTally : public Estimator {
public:
SurfaceFluxTally(): Estimator() {};
~SurfaceFluxTally() {};
void score(double mu);
};
class CollisionTally : public Estimator {
public:
CollisionTally(): Estimator() {};
~CollisionTally() {};
void score(double xs);
};
*/
#endif