42 #ifndef STOKHOS_DISCRETIZEDSTIELTJESBASIS_HPP
43 #define STOKHOS_DISCRETIZEDSTIELTJESBASIS_HPP
62 template <
typename ordinal_type,
typename value_type>
Teuchos::Array< value_type > delta
Recurrence coefficients.
value_type evaluateWeight(const value_type &x) const
Evaluates the scaled weight function.
virtual bool computeRecurrenceCoefficients(ordinal_type n, Teuchos::Array< value_type > &alpha, Teuchos::Array< value_type > &beta, Teuchos::Array< value_type > &delta, Teuchos::Array< value_type > &gamma) const
Compute recurrence coefficients.
Implementation of OneDOrthogPolyBasis based on the general three-term recurrence relationship: for ...
Generates three-term recurrence using the Discretized Stieltjes procedure.
std::string name
Name of basis.
value_type eval_inner_product(const ordinal_type &order1, const ordinal_type &order2) const
Evaluate inner product of two basis functions to test orthogonality.
Teuchos::Array< value_type > beta
Recurrence coefficients.
GrowthPolicy
Enumerated type for determining Smolyak growth policies.
Teuchos::Array< value_type > quad_weights
Quadrature points for discretized stieltjes procedure.
Teuchos::Array< value_type > alpha
Recurrence coefficients.
const value_type leftEndPt_
Left end point of domain.
Teuchos::Array< Teuchos::Array< value_type > > quad_values
Quadrature values for discretized stieltjes procedure.
value_type expectedValue_tJ_nsquared(const ordinal_type &order, const Teuchos::Array< value_type > &alpha, const Teuchos::Array< value_type > &beta) const
Approximates where = order.
value_type scaleFactor
Scale for the weight.
value_type expectedValue_J_nsquared(const ordinal_type &order, const Teuchos::Array< value_type > &alpha, const Teuchos::Array< value_type > &beta) const
Approximates where = order.
value_type evaluateRecurrence(const value_type &point, ordinal_type order, const Teuchos::Array< value_type > &alpha, const Teuchos::Array< value_type > &beta) const
Evaluate 3-term recurrence formula using supplied coefficients.
Teuchos::Array< value_type > quad_points
Quadrature points for discretized stieltjes procedure.
const value_type rightEndPt_
Right end point of domain.
virtual ordinal_type order() const
Return order of basis (largest monomial degree ).
virtual Teuchos::RCP< OneDOrthogPolyBasis< ordinal_type, value_type > > cloneWithOrder(ordinal_type p) const
Clone this object with the option of building a higher order basis.
ordinal_type p
Order of basis.
DiscretizedStieltjesBasis & operator=(const DiscretizedStieltjesBasis &b)
Teuchos::Array< value_type > gamma
Recurrence coefficients.
value_type(* weightFn_)(const value_type &)
Weight function.
bool normalize
Normalize basis.
DiscretizedStieltjesBasis(const std::string &name, const ordinal_type &p, value_type(*weightFn)(const value_type &), const value_type &leftEndPt, const value_type &rightEndPt, bool normalize, GrowthPolicy growth=SLOW_GROWTH)
Constructor.
~DiscretizedStieltjesBasis()
Destructor.
GrowthPolicy growth
Smolyak growth policy.