PandA-2024.02
Statistics.hpp
Go to the documentation of this file.
1 /*
2  *
3  * _/_/_/ _/_/ _/ _/ _/_/_/ _/_/
4  * _/ _/ _/ _/ _/_/ _/ _/ _/ _/ _/
5  * _/_/_/ _/_/_/_/ _/ _/_/ _/ _/ _/_/_/_/
6  * _/ _/ _/ _/ _/ _/ _/ _/ _/
7  * _/ _/ _/ _/ _/ _/_/_/ _/ _/
8  *
9  * ***********************************************
10  * PandA Project
11  * URL: http://panda.dei.polimi.it
12  * Politecnico di Milano - DEIB
13  * System Architectures Group
14  * ***********************************************
15  * Copyright (C) 2004-2024 Politecnico di Milano
16  *
17  * This file is part of the PandA framework.
18  *
19  * The PandA framework is free software; you can redistribute it and/or modify
20  * it under the terms of the GNU General Public License as published by
21  * the Free Software Foundation; either version 3 of the License, or
22  * (at your option) any later version.
23  *
24  * This program is distributed in the hope that it will be useful,
25  * but WITHOUT ANY WARRANTY; without even the implied warranty of
26  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
27  * GNU General Public License for more details.
28  *
29  * You should have received a copy of the GNU General Public License
30  * along with this program. If not, see <http://www.gnu.org/licenses/>.
31  *
32  */
43 #ifndef STATISTICS_HPP
44 #define STATISTICS_HPP
45 
46 #include <boost/math/distributions/lognormal.hpp>
47 #include <boost/math/distributions/normal.hpp>
49 #include <boost/version.hpp>
50 
51 #if BOOST_VERSION >= 104600
52 #else
53 #include <tuple>
54 
55 #define BOOST_TR1_TUPLE_HPP_INCLUDED
56 #endif
57 #include <boost/math/distributions.hpp>
58 #include <vector>
59 
65 boost::math::normal MultiplyVarForCoefficient(int coeff, boost::math::normal var);
66 
72 boost::math::normal VarSum(boost::math::normal x, double c);
73 
79 boost::math::normal VarSum(boost::math::normal x, boost::math::normal y);
80 
87 boost::math::normal VarSum(boost::math::normal x, boost::math::normal y, double p);
88 
93 boost::math::lognormal VarSum(std::vector<boost::math::lognormal> v);
94 
100 boost::math::lognormal VarSum(boost::math::lognormal x, boost::math::lognormal y);
101 
108 boost::math::lognormal VarSum(boost::math::lognormal s1, boost::math::lognormal s2, double p);
109 
116 boost::math::normal VarMax(boost::math::normal x, boost::math::normal y, double p);
117 
122 boost::math::normal VarMax(std::vector<boost::math::normal> v);
123 
130 boost::math::normal ComputeStatisticalDelay(double d, int n);
131 
138 boost::math::lognormal ComputeStatisticalPower(double p, int n);
139 
145 boost::math::normal CreateStatisticalAttribute(double a, int n);
146 
157 boost::math::normal CreateStatisticalAttribute(double a, std::vector<int> d, double mean, double st_dev, int d_rand,
158  double mean_rand, double st_dev_rand);
159 
160 #endif
boost::math::lognormal ComputeStatisticalPower(double p, int n)
Definition: Statistics.cpp:155
boost::math::normal VarSum(boost::math::normal x, double c)
Definition: Statistics.cpp:57
boost::math::normal ComputeStatisticalDelay(double d, int n)
Definition: Statistics.cpp:150
boost::math::normal VarMax(boost::math::normal x, boost::math::normal y, double p)
Definition: Statistics.cpp:116
boost::math::normal MultiplyVarForCoefficient(int coeff, boost::math::normal var)
Definition: Statistics.cpp:48
boost::math::normal CreateStatisticalAttribute(double a, int n)
Definition: Statistics.cpp:162
x
Return the smallest n such that 2^n >= _x.

Generated on Mon Feb 12 2024 13:02:56 for PandA-2024.02 by doxygen 1.8.13