You are viewing a single comment's thread. Return to all comments →
I am getting time out error for the second test case. Though I have tried using same data in R in my local it works fine and quickly outputs.
I am using a custom correlation function which is
cor_calc<-function(x,y,n) { xy=x*y x2=x^2 y2=y^2 num=n*as.numeric(sum(xy))-as.numeric(as.numeric(sum(x))*as.numeric(sum(y))) den=sqrt(n*sum(x2)-sum(x)^2)*sqrt(n*sum(y2)-sum(y)^2) return (num/den) }
Any help??
Seems like cookies are disabled on this browser, please enable them to open this website
Day 5: Computing the Correlation
You are viewing a single comment's thread. Return to all comments →
I am getting time out error for the second test case. Though I have tried using same data in R in my local it works fine and quickly outputs.
I am using a custom correlation function which is
Any help??