Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Fukushima AI - Zero Radiation Exposure Related Casualties
- function v(a,b){c=0;r=0;t=0;foreach(a as k=>v){if(isset(b[k])){c++;t=b[k]-v;r+=t*t;}}if((c!==0)&&(r!==0)){r=sqrt(r);}return r;}function s(h,a,b){r=0;t=0;e=v(h[a],h[b]);foreach(h as c=>d){if((a!==c)&&(b!==c)){t++;f=v(h[a],h[c]);g=v(h[b],h[c]);if(e>f){r++;}if(e>g){r++;}}}return 1-r/2/t;}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement