12 std::vector<std::shared_ptr<Quadrature>>
const& quad1dIn,
13 std::vector<std::shared_ptr<IndexedScalarBasis>>
const& polys1dIn)
15 tensFactory(quad1dIn, polys1dIn)
26 std::vector<std::reference_wrapper<const Eigen::VectorXd>>
const& modEvals)
32 std::shared_ptr<PolynomialChaosExpansion>
const& part1,
34 std::shared_ptr<PolynomialChaosExpansion>
const& part2)
const
36 Eigen::VectorXd wts(2);
44 return estimate->Magnitude().norm();
virtual std::vector< Eigen::VectorXd > OneTermPoints(std::shared_ptr< muq::Utilities::MultiIndex > const &multi) override
virtual double ComputeMagnitude(std::shared_ptr< PolynomialChaosExpansion > const &estimate) const override
AdaptiveSmolyakPCE(std::shared_ptr< muq::Modeling::ModPiece > const &modelIn, std::vector< std::shared_ptr< Quadrature >> const &quad1dIn, std::vector< std::shared_ptr< IndexedScalarBasis >> const &polys1dIn)
virtual std::shared_ptr< PolynomialChaosExpansion > AddEstimates(double w1, std::shared_ptr< PolynomialChaosExpansion > const &part1, double w2, std::shared_ptr< PolynomialChaosExpansion > const &part2) const override
virtual std::shared_ptr< PolynomialChaosExpansion > ComputeOneTerm(std::shared_ptr< muq::Utilities::MultiIndex > const &multi, std::vector< std::reference_wrapper< const Eigen::VectorXd >> const &modEvals) override
std::vector< Eigen::VectorXd > const & QuadPts() const
std::shared_ptr< PolynomialChaosExpansion > Compute(std::shared_ptr< muq::Modeling::ModPiece > const &model)
A class for representing and using expansions of orthogonal multivariate polynomials.
static std::shared_ptr< PolynomialChaosExpansion > ComputeWeightedSum(std::vector< std::shared_ptr< PolynomialChaosExpansion >> expansions, Eigen::VectorXd const &weights)