Add a test for the constrained cubic interpolation of Evoral::Curve
authorColin Fletcher <colin.m.fletcher@googlemail.com>
Fri, 13 Feb 2015 12:25:26 +0000 (12:25 +0000)
committerColin Fletcher <colin.m.fletcher@googlemail.com>
Fri, 13 Feb 2015 12:25:51 +0000 (12:25 +0000)
commitcb3961d9534d3bd86cc2c1c2be72b8eb33717e77
treee0f79edfa92144d09b0d59f92fd74ee7bd10be3c
parent5ec93d18e16f83ff4548ea27379c813c8f42e413
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.
libs/evoral/test/CurveTest.cpp
libs/evoral/test/CurveTest.hpp