Another failed attemt at natural spline interpolation

git-svn-id: svn://localhost/ardour2/branches/3.0@5423 d708f5d6-7413-0410-9779-e7cbd77b26cf
This commit is contained in:
Hans Baier 2009-07-24 05:27:43 +00:00
parent 793372d7d4
commit 3e88c8aa25
4 changed files with 62 additions and 137 deletions

View file

@ -26,8 +26,8 @@
class InterpolationTest : public CppUnit::TestFixture
{
CPPUNIT_TEST_SUITE(InterpolationTest);
//CPPUNIT_TEST(linearInterpolationTest);
CPPUNIT_TEST(splineInterpolationTest);
//CPPUNIT_TEST(linearInterpolationTest);
//CPPUNIT_TEST(libSamplerateInterpolationTest);
CPPUNIT_TEST_SUITE_END();
@ -45,7 +45,7 @@ class InterpolationTest : public CppUnit::TestFixture
void setUp() {
for (int i = 0; i < NUM_SAMPLES; ++i) {
if (i % INTERVAL == 50) {
if (i % INTERVAL == 0) {
input[i] = 1.0f;
} else {
input[i] = 0.0f;