How to calculate this formula?
1 次查看(过去 30 天)
显示 更早的评论
I have a vector of weight w(1,n) and a vector of correlation p(n,1). How can calculate this formula?
采纳的回答
Star Strider
2015-11-5
See if this works:
wij = triu(bsxfun(@times, w, w'));
num = wij*p;
den = sum(wij(:));
pr = sum(num(:))/den);
0 个评论
更多回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!