preCICE
v3.1.2
Loading...
Searching...
No Matches
src
math
Bspline.hpp
Go to the documentation of this file.
1
#pragma once
2
#include <Eigen/Core>
3
4
namespace
precice::math
{
5
6
class
Bspline
{
7
8
public
:
17
Bspline
(Eigen::VectorXd
ts
,
const
Eigen::MatrixXd &xs,
int
splineDegree);
18
27
Eigen::VectorXd
interpolateAt
(
double
t)
const
;
28
29
private
:
30
Eigen::VectorXd
_knots
;
// Cache to store previously computed knots
31
Eigen::MatrixXd
_ctrls
;
// Cache to store previously computed control points
32
double
_tsMin
;
// The minimal time of the bspline
33
double
_tsMax
;
// The maximal time of the bspline
34
int
_ndofs
;
// The degrees of freedom of the data
35
};
36
}
// namespace precice::math
ts
Eigen::Vector2d ts
Definition
BSplineTest.cpp:129
precice::math::Bspline
Definition
Bspline.hpp:6
precice::math::Bspline::_ctrls
Eigen::MatrixXd _ctrls
Definition
Bspline.hpp:31
precice::math::Bspline::_ndofs
int _ndofs
Definition
Bspline.hpp:34
precice::math::Bspline::_tsMin
double _tsMin
Definition
Bspline.hpp:32
precice::math::Bspline::_knots
Eigen::VectorXd _knots
Definition
Bspline.hpp:30
precice::math::Bspline::interpolateAt
Eigen::VectorXd interpolateAt(double t) const
Samples the B-Spline interpolation.
Definition
Bspline.cpp:58
precice::math::Bspline::Bspline
Bspline(Eigen::VectorXd ts, const Eigen::MatrixXd &xs, int splineDegree)
Initialises the B-Spline interpolation with the given data (x0,t0), (x1,t1), ..., (xn,...
Definition
Bspline.cpp:14
precice::math::Bspline::_tsMax
double _tsMax
Definition
Bspline.hpp:33
precice::math
provides general mathematical constants and functions.
Definition
barycenter.cpp:9