# Computing the BSpline Kernel?

This topic is 3343 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

## Recommended Posts

On wiki in the section: Uniform cubic B-splines http://en.wikipedia.org/wiki/B-spline the matrix form of a cubic BSpline is given. I have found the following implementation for this kernel: BSplineKernel( double u) { double absValue = vnl_math_abs( u ); double sqrValue = vnl_math_sqr( u ); if ( absValue < 1.0 ) { return ( 4.0 - 6.0 * sqrValue + 3.0 * sqrValue * absValue ) / 6.0; } else if ( absValue < 2.0 ) { return ( 8.0 - 12 * absValue + 6.0 * sqrValue - sqrValue * absValue ) / 6.0; } else { return 0.0; } } But the only resemblence I see is the division with 6. Out of curiosity does the above implementation relate to the formula on the wiki page or is it another way of expressing a cubic BSpline kernel??

1. 1
2. 2
3. 3
Rutin
24
4. 4
5. 5
khawk
14

• 11
• 11
• 23
• 10
• 9
• ### Forum Statistics

• Total Topics
633651
• Total Posts
3013128
×