mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-13 10:06:33 +01:00
Add a test for the constrained cubic interpolation of Evoral::Curve
Add a test, based on the worked example in www.korf.co.uk/spline.pdf, for the constrained cubic spline interpolation. The delta values for the float comparisons are rather arbitrary, I'm sorry to say: they're basically chosen so that everything passes.
This commit is contained in:
parent
5ec93d18e1
commit
cb3961d953
2 changed files with 182 additions and 0 deletions
|
|
@ -9,6 +9,7 @@ class CurveTest : public CppUnit::TestFixture
|
|||
CPPUNIT_TEST (twoPointLinear);
|
||||
CPPUNIT_TEST (threePointLinear);
|
||||
CPPUNIT_TEST (threePointDiscete);
|
||||
CPPUNIT_TEST (constrainedCubic);
|
||||
CPPUNIT_TEST (ctrlListEval);
|
||||
CPPUNIT_TEST_SUITE_END ();
|
||||
|
||||
|
|
@ -16,6 +17,7 @@ public:
|
|||
void twoPointLinear ();
|
||||
void threePointLinear ();
|
||||
void threePointDiscete ();
|
||||
void constrainedCubic ();
|
||||
void ctrlListEval ();
|
||||
|
||||
private:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue