function kval = mlp_kernel(u,v,P1,P2,varargin)%#ok
%MLP_KERNEL multilayer perceptron kernel for SVM functions

if nargin < 3
    P1 = 1;
end

if nargin < 4
    P2 = -1;
end

kval = tanh(P1*(u*v')+P2);
