How would you write this equation in MATLAB? (challenging)

  • Topic: MATLAB 
  • Thread starter Thread starter leealex0201
  • Start date Start date
  • Tags Tags
    Matlab
Join the discussion
Registration is free. Start your own thread to ask a follow-up.
1 reply · 2K views · last reply
leealex0201
Messages
1
Reaction score
0
Hello guys,

I would like to put this equation into the MATLAB to calculate the global maximum of mutual information function. In order to do that, I notice that I need a gradient of the function which is described as in attached files.

I do have the vector for P(x) and P(x|spike). Let's say they are called A and B respectively. Then, how do I write this down in MATLAB to calculate the gradient?

FYI, A and B are 1-by-100 vectors.
 
Attachments
  • Typeset equation for the gradient of mutual information: nabla_v I equals the integral of dx P_v(x) times the bracket of <s|x, spike> minus <s|x>, dotted with the bracket of d/dx of P_v(x|spike) over P_v(x); followed by the definition <s|x, spike> equals 1 over P(x|spike) times the integral of ds s delta(x - s dot v) P(s|spike).
    Screen Shot 2014-04-25 at 10.18.59 AM.png
    6.1 KB · Views: 629
  • Equation: < s|x > = (1/p(x)) integral of dss delta(x - s · v) p(s), written in LaTeX-style typesetting.
    Screen Shot 2014-04-25 at 10.22.30 AM.png
    3.3 KB · Views: 593
Physics news on Phys.org