Interpolation

Functions

LUSE_ENGR701_704_NumericalMethods.Interpolations.bezierMethod
bezier(x, y, xguides, yguides)

An application of Hermitic polynomials to draw Bezier curves between points.

Notes

Each argument should be a one-to-one mapping of points, (xᵢ, yᵢ) and (xᵢ₊₁, yᵢ₊₁) and their respective guide points, (xᵢ⁺, yᵢ⁺) and (xᵢ₊₁⁻, yᵢ₊₁⁻).

source
LUSE_ENGR701_704_NumericalMethods.Interpolations.linearleastsquaresMethod
linearleastsquares(x, f, n::Int64)

Construct a polynomial of degree, n while minimizing the least squares error.

Notes

Least squares error := $E = \sum_{i=1}^{m}[y_{i} - P_{n}(x_{i})]^{2}$

Constructed polynomial of the form: $P(x) = a_{n}x^{n} + a_{n - 1}x^{n - 1} + \dots + a_{1}x + a_{0}$

source
LUSE_ENGR701_704_NumericalMethods.Interpolations.newtondifferenceMethod
newtondifference(x, f, α[; dir::Symbol=:auto])

Given a domain, x and range, f, construct some polynomial by Newton's Divided Difference centered around α. :forward or :backward construction.

Notes

Direction will be chosen if not specified. Polynomials best made with even spacing in x; although, this is not completely necessary.

source

Index