-
Notifications
You must be signed in to change notification settings - Fork 0
Description
Problem or Motivation
Currently, the alfi::misc::barycentric function supports special formulas for barycentric weights only for the following point distributions:
- Uniform
- Chebyshev (first kind)
- Circle projection (Chebyshev second kind)
The formulas for the "Chebyshev" and "Circle projection" distributions are very stable.
However, according to the article [1], there are at least two additional point distributions for which a special stable barycentric weight formulas exist: "Chebyshev third kind" and "Chebyshev fourth kind".
The corresponding formulas can be found in the referenced article.
There may also be other formulas applicable to the point distributions already implemented in the library, so further investigation is warranted.
Solution or Suggestion
Implement special formulas for barycentric weights for the "Chebyshev third kind" and "Chebyshev fourth kind" point distributions.
Tasks:
-
- Implement "Chebyshev third kind" point distribution. Added
(circle|ellipse)_proj_no_(last|first)distribution types #48
- Implement "Chebyshev third kind" point distribution. Added
-
- Implement "Chebyshev fourth kind" point distribution. Added
(circle|ellipse)_proj_no_(last|first)distribution types #48
- Implement "Chebyshev fourth kind" point distribution. Added
-
- Integrate the new formulas into
alfi::misc::barycentric. Added(circle|ellipse)_proj_no_(last|first)distribution types #48
- Integrate the new formulas into
-
- Add description of the barycentric formula in https://github.com/ALFI-lib/alfi-lib.github.io. https://github.com/ALFI-lib/alfi-lib.github.io/pull/16
-
- Add test data for new distributions. Add test data for new Chebyshev-related point distributions test_data#5 Added
chebyshev(_ellipse)?_(3|4)distributions data test_data#6
- Add test data for new distributions. Add test data for new Chebyshev-related point distributions test_data#5 Added
-
- Rename: chore(dist): Renamed Chebyshev-related distributions and updated tests #51
circle_projtochebyshev_2circle_proj_no_lasttochebyshev_3circle_proj_no_firsttochebyshev_4
-
- Link tests to updated test data. chore(dist): Renamed Chebyshev-related distributions and updated tests #51
Further improvements:
- Evaluate and implement special formulas for barycentric weights for other point distributions.
Sources of literature:
- Jean-Paul Berrut and Lloyd N. Trefethen, Barycentric Lagrange Interpolation (2004) – people.maths.ox.ac.uk/trefethen/barycentric.pdf
- Families of polynomials related to Chebyshev polynomials – Wikipedia