25 #include <queso/MonteCarloQuadrature.h>
26 #include <queso/UniformVectorRV.h>
27 #include <queso/GslVector.h>
28 #include <queso/GslMatrix.h>
32 template <
class V,
class M>
34 unsigned int n_samples )
46 for(
unsigned int i = 0; i < n_samples; i++ )
std::shared_ptr< T > Type
A templated (base) class for handling sampling from vector RVs.
A class representing a uniform vector RV.
virtual void realization(V &nextValues) const =0
Performs a realization (sample) from a probability density function. See template specialization...
A templated class for handling subsets.
double volume() const
Set volume; access to private attribute m_volume.
MonteCarloQuadrature(const VectorSubset< V, M > &domain, unsigned int n_samples)
std::vector< double > m_weights
Numerical integration using Monte Carlo.
Base class for multi-dimensional quadrature rules.
std::vector< typename QUESO::SharedPtr< V >::Type > m_positions
Locations of quadrature points.
const VectorSubset< V, M > & m_domain
Domain over which the quadrature will be performed.
const BaseVectorRealizer< V, M > & realizer() const
Finds a realization (sample) of the PDF of this vector RV; access to private attribute m_realizer...
const VectorSpace< V, M > & vectorSpace() const
Vector space to which this set belongs to. See template specialization.