/home/runner/work/kynema/kynema/kynema/src/math/interpolation.hpp File Reference
Kynema API
A flexible multibody structural dynamics code for wind turbines
|
Loading...
Searching...
No Matches
interpolation.hpp File Reference
#include <cmath>
#include <numbers>
#include <numeric>
#include <ranges>
#include <span>
#include <stdexcept>
#include <string>
#include <vector>
Go to the source code of this file.
Namespaces | |
namespace | kynema |
namespace | kynema::math |
Functions | |
void | kynema::math::LinearInterpWeights (double x, std::span< const double > xs, std::vector< double > &weights) |
Computes weights for linear interpolation. | |
double | kynema::math::LinearInterp (double x, std::span< const double > xs, std::span< const double > values) |
Computes linear interpolation. | |
void | kynema::math::LagrangePolynomialInterpWeights (double x, std::span< const double > xs, std::vector< double > &weights) |
Computes weights for Lagrange polynomial interpolation. | |
void | kynema::math::LagrangePolynomialDerivWeights (double x, std::span< const double > xs, std::vector< double > &weights) |
Computes weights for Lagrange polynomial derivative interpolation. | |
double | kynema::math::LegendrePolynomial (const size_t n, const double x) |
Calculates the value of Legendre polynomial of order n at point x. | |
std::vector< double > | kynema::math::GenerateGLLPoints (const size_t order) |
Generates Gauss-Lobatto-Legendre (GLL) points for spectral element discretization. | |
Generated by