How to build a correct spline kernel for svm

Hi everybody,
I have a question regarding the implementation of kernels. I want to use a spline kernel which is not in the toolbox. the code is relatively easy.
z = 1 + u.*v + (1/2)*u.*v.*min(u,v) - (1/6)*(min(u,v)).^3;
k = prod(z);
but there is always an error because of the matrix dimensions. how can I solve it?
Thanks in advance
Daniel

Catégories

En savoir plus sur Statistics and Machine Learning Toolbox dans Centre d'aide et File Exchange

Question posée :

le 11 Mai 2013

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by