PandA-2024.02
Macros | Functions
Statistics.hpp File Reference

This file collects some algebric statistical functions. More...

#include <boost/math/distributions/lognormal.hpp>
#include <boost/math/distributions/normal.hpp>
#include <boost/version.hpp>
#include <tuple>
#include <boost/math/distributions.hpp>
#include <vector>
Include dependency graph for Statistics.hpp:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define BOOST_TR1_TUPLE_HPP_INCLUDED
 Utility include. More...
 

Functions

boost::math::normal MultiplyVarForCoefficient (int coeff, boost::math::normal var)
 
boost::math::normal VarSum (boost::math::normal x, double c)
 
boost::math::normal VarSum (boost::math::normal x, boost::math::normal y)
 
boost::math::normal VarSum (boost::math::normal x, boost::math::normal y, double p)
 
boost::math::lognormal VarSum (std::vector< boost::math::lognormal > v)
 
boost::math::lognormal VarSum (boost::math::lognormal x, boost::math::lognormal y)
 
boost::math::lognormal VarSum (boost::math::lognormal s1, boost::math::lognormal s2, double p)
 
boost::math::normal VarMax (boost::math::normal x, boost::math::normal y, double p)
 
boost::math::normal VarMax (std::vector< boost::math::normal > v)
 
boost::math::normal ComputeStatisticalDelay (double d, int n)
 
boost::math::lognormal ComputeStatisticalPower (double p, int n)
 
boost::math::normal CreateStatisticalAttribute (double a, int n)
 
boost::math::normal CreateStatisticalAttribute (double a, std::vector< int > d, double mean, double st_dev, int d_rand, double mean_rand, double st_dev_rand)
 

Detailed Description

This file collects some algebric statistical functions.

Author
Carmine Galeone $Revision$ $Date$

Definition in file Statistics.hpp.

Macro Definition Documentation

◆ BOOST_TR1_TUPLE_HPP_INCLUDED

#define BOOST_TR1_TUPLE_HPP_INCLUDED

Utility include.

Definition at line 55 of file Statistics.hpp.

Function Documentation

◆ ComputeStatisticalDelay()

boost::math::normal ComputeStatisticalDelay ( double  d,
int  n 
)
Returns
a boost::math::normal random variable representing the statististical delay of an operational vertex in the DFG.
Parameters
dis the nominal delay of the operational vertex.
nis the number of random variables used to generate the statistical representation.

Definition at line 150 of file Statistics.cpp.

References CreateStatisticalAttribute().

Here is the call graph for this function:

◆ ComputeStatisticalPower()

boost::math::lognormal ComputeStatisticalPower ( double  p,
int  n 
)
Returns
a boost::math::normal random variable representing the statististical power consumption of an operational vertex in the DFG.
Parameters
pis the nominal power consumption of the operational vertex.
nis the number of random variables used to generate the statistical representation.

Definition at line 155 of file Statistics.cpp.

References CreateStatisticalAttribute().

Here is the call graph for this function:

◆ CreateStatisticalAttribute() [1/2]

boost::math::normal CreateStatisticalAttribute ( double  a,
int  n 
)
Returns
a boost::math::normal random variable representing an attribute of one operational vertex in the DFG.
Parameters
ais the nominal attribute value of the operational vertex.
nis the number of random variables used to generate the statistical representation.

Definition at line 162 of file Statistics.cpp.

References CreateStatisticalAttribute().

Referenced by ComputeStatisticalDelay(), ComputeStatisticalPower(), and CreateStatisticalAttribute().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ CreateStatisticalAttribute() [2/2]

boost::math::normal CreateStatisticalAttribute ( double  a,
std::vector< int >  d,
double  mean,
double  st_dev,
int  d_rand,
double  mean_rand,
double  st_dev_rand 
)
Returns
a boost::math::normal random variable representing an attribute of one operational vertex in the DFG.
Parameters
ais the nominal attribute value of the operational vertex.
dis the list of the weights of the boost::math::normal random variables.
meanis mean of the single boost::math::normal random variable.
st_devis standard deviation of the single boost::math::normal random variable.
d_randis weight of the boost::math::normal variable representing the random component.
mean_randis mean of the boost::math::normal variable representing the random component.
st_dev_randis standard deviation of the boost::math::normal variable representing the random component.

Definition at line 174 of file Statistics.cpp.

References MultiplyVarForCoefficient(), and VarSum().

Here is the call graph for this function:

◆ MultiplyVarForCoefficient()

boost::math::normal MultiplyVarForCoefficient ( int  coeff,
boost::math::normal  var 
)
Returns
return a boost::math::normal random variable multiplied for a constant.
Parameters
coeffis the constant.
varis the boost::math::normal random variable.

Definition at line 48 of file Statistics.cpp.

Referenced by CreateStatisticalAttribute().

Here is the caller graph for this function:

◆ VarMax() [1/2]

boost::math::normal VarMax ( boost::math::normal  x,
boost::math::normal  y,
double  p 
)
Returns
return the max of two boost::math::normal random variables.
Parameters
xis the first random variable.
yis the second random variable.
pis the correlation between x and y.

Definition at line 116 of file Statistics.cpp.

Referenced by VarMax().

Here is the caller graph for this function:

◆ VarMax() [2/2]

boost::math::normal VarMax ( std::vector< boost::math::normal >  v)
Returns
return the max of all the independent boost::math::normal random variables contained in a vector.
Parameters
vis the list of random variables.

Definition at line 136 of file Statistics.cpp.

References VarMax().

Here is the call graph for this function:

◆ VarSum() [1/6]

boost::math::normal VarSum ( boost::math::normal  x,
double  c 
)
Returns
return the sum of a boost::math::normal random variable and a constant.
Parameters
xis the random variable.
cis the constant.

Definition at line 57 of file Statistics.cpp.

Referenced by CreateStatisticalAttribute(), and VarSum().

Here is the caller graph for this function:

◆ VarSum() [2/6]

boost::math::normal VarSum ( boost::math::normal  x,
boost::math::normal  y 
)
Returns
return the sum of two independent boost::math::normal random variables.
Parameters
xis the first random variable.
yis the second random variable.

Definition at line 63 of file Statistics.cpp.

References VarSum().

Here is the call graph for this function:

◆ VarSum() [3/6]

boost::math::normal VarSum ( boost::math::normal  x,
boost::math::normal  y,
double  p 
)
Returns
return the sum of two boost::math::normal random variables.
Parameters
xis the first random variable.
yis the second random variable.
pis the correlation between x and y.

Definition at line 68 of file Statistics.cpp.

◆ VarSum() [4/6]

boost::math::lognormal VarSum ( std::vector< boost::math::lognormal >  v)
Returns
return the sum of all the independent boost::math::normal random variables contained in a vector.
Parameters
vis the list of random variables.

Definition at line 80 of file Statistics.cpp.

References VarSum().

Here is the call graph for this function:

◆ VarSum() [5/6]

boost::math::lognormal VarSum ( boost::math::lognormal  x,
boost::math::lognormal  y 
)
Returns
return the sum of two independent lognormal random variables.
Parameters
xis the first random variable.
yis the second random variable.

Definition at line 94 of file Statistics.cpp.

References VarSum().

Here is the call graph for this function:

◆ VarSum() [6/6]

boost::math::lognormal VarSum ( boost::math::lognormal  s1,
boost::math::lognormal  s2,
double  p 
)
Returns
return the sum of two lognormal random variables.
Parameters
xis the first random variable.
yis the second random variable.
pis the correlation between x and y.

Definition at line 99 of file Statistics.cpp.

References exp.


Generated on Mon Feb 12 2024 13:03:35 for PandA-2024.02 by doxygen 1.8.13