Is there a matlab code to calculate the nodes and weights for random gauss quadrature?

6 views (last 30 days)
For example there is the code nwspgr.m for the Smolyak(sparse grid) quadrature.
  2 Comments
John D'Errico
John D'Errico on 24 Jul 2020
Please explain what you mean by a "random Gauss quadrature". The word random means something in mathematics. As well, Gauss quadrature also means something. However, the juxtaposition of the two has no meaning that I can see in mathematics.
Next, you mention the code nwspgr.m. I must assume you mean this:
But I might be wrong. If you want help, then you want to make it easy for people to help you.
sufia KHATOON
sufia KHATOON on 24 Jul 2020
Thank you for your comment. Yes you are right about nwspgr.m which is available on http://www.sparse-grids.de. Similarly as mention in this paper "Zhou, T., Narayan, A., & Xiu, D. (2015). Weighted discrete least-squares polynomial approximation using randomized quadratures. Journal of Computational Physics, 298, 787-800."
On page 4 under 3.1:Random sampling of tensor Gauss points can also be done. I want to know if there is a matlab function for that which gives the nodes and weights.
If you need further clarification, please let me know.

Sign in to comment.

Answers (0)

Categories

Find more on Mathematics in Help Center and File Exchange

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!