How to calculate this formula?
3 vues (au cours des 30 derniers jours)
Afficher commentaires plus anciens
fede
le 5 Nov 2015
Réponse apportée : Star Strider
le 5 Nov 2015
I have a vector of weight w(1,n) and a vector of correlation p(n,1). How can calculate this formula?

Réponse acceptée
Star Strider
le 5 Nov 2015
See if this works:
wij = triu(bsxfun(@times, w, w'));
num = wij*p;
den = sum(wij(:));
pr = sum(num(:))/den);
0 commentaires
Plus de réponses (0)
Voir également
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!