-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathstatistics.hpp
59 lines (46 loc) · 1.01 KB
/
statistics.hpp
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
#ifndef _STATISTICS_HPP
#define _STATISTICS_HPP 1
#include <stdint.h>
#include <iostream>
#include <sstream>
#include <vector>
class StringStatistics
{
friend std::ostream& operator<<(std::ostream &os,
const StringStatistics & thing);
public:
StringStatistics();
virtual ~StringStatistics();
void parseData(std::stringstream &data);
private:
std::size_t number;
};
template <typename ComplexT>
class PrenexusStatistics
{
template <typename TYPE>
friend std::ostream& operator<<(std::ostream &os, const PrenexusStatistics<TYPE> &thing);
public:
PrenexusStatistics();
virtual ~PrenexusStatistics();
void parseData(std::vector<ComplexT> & data);
private:
std::size_t number;
};
template <typename NumT>
class Statistics
{
template <typename TYPE>
friend std::ostream& operator<<(std::ostream &os,
const Statistics<TYPE> & thing);
public:
Statistics();
virtual ~Statistics();
void parseData(std::vector<NumT> & data);
private:
double total;
NumT min;
NumT max;
std::size_t number;
};
#endif