Drexel dragonThe Math ForumDonate to the Math Forum



Search All of the Math Forum:

Views expressed in these public forums are not endorsed by Drexel University or The Math Forum.


Math Forum » Discussions » Software » comp.soft-sys.matlab

Topic: chi squared kernel equation
Replies: 1   Last Post: Jan 14, 2014 6:28 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View   Messages: [ Previous | Next ]
amira ali

Posts: 160
Registered: 5/15/11
Re: chi squared kernel equation
Posted: Jan 14, 2014 6:28 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

"amira ali" wrote in message <lb3arv$g52$1@newscl01ah.mathworks.com>...
> please i have two equation for chi square kernel and i want to know which one is correct ,where one without exp and another with exp?
> first one is :
> K(x, y) =1-D
>
> D=sum[(xi-yi)^2./((1/2)x+y)] and implementation is
>
> function D = chi2Kernel(X,Y)
> D = zeros(size(X,1),size(Y,1));
> for i=1:size(Y,1)
> d = bsxfun(@minus, X, Y(i,:));
> s = bsxfun(@plus, X, Y(i,:));
> D(:,i) = sum(d.^2 ./ (s/2+eps), 2);
> end
> D = 1 - D;
> end
>
> second one is K(xi; xj) = -1/A exp(D(xi; xj));

there are any help?



Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© Drexel University 1994-2014. All Rights Reserved.
The Math Forum is a research and educational enterprise of the Drexel University School of Education.