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:
Colin Fletcher 2015-02-13 12:25:26 +00:00
parent 5ec93d18e1
commit cb3961d953
2 changed files with 182 additions and 0 deletions

View file

@ -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: