aboutsummaryrefslogtreecommitdiffstats
path: root/resources/libraries/python/ssh.py
AgeCommit message (Expand)AuthorFilesLines
2016-09-29Enable paramiko ssh keepalive (10s)Miroslav Miklus1-0/+2
2016-07-25SSH timeout problemMatej Klotton1-34/+66
2016-06-28Use interface key instead of interface name.Miroslav Miklus1-1/+1
2016-04-22Reformat python libraries.Matej Klotton1-48/+54
2016-04-08Add Vagrantfile for local testing.Stefan Kobza1-5/+12
2016-03-18Add SSH disconnectMatus Fabian1-0/+11
2016-03-18Fixed SSH exec_command timeoutMatus Fabian1-15/+6
2016-03-14SSH connect use port specified in node dictMatus Fabian1-1/+2
2016-03-11Update VPP version downloaded from Nexus.Matej Klotton1-8/+20
2016-02-17Test VIRL connection.Stefan Kobza1-15/+31
2016-02-17LF testbed2 topology, T-REX upgrade, vpe->vpp renameMiroslav Miklus1-1/+1
2016-02-08New version of RF tests.Stefan Kobza1-0/+235
errx, erry, prodsum, sqerrx, sqerry; int i; *b = 0.0; for (i = 0; i < nitems; i++) { sx += x[i]; sy += y[i]; if (y[i] < min) min = y[i]; if (y[i] > max) max = y[i]; } ss = nitems; meanx = sx / ss; meany = *meanp = sy / ss; *minp = min; *maxp = max; for (i = 0; i < nitems; i++) { t = x[i] - meanx; st2 += t*t; *b += t*y[i]; } *b /= st2; *a = (sy-sx*(*b))/ss; prodsum = 0.0; sqerrx = 0.0; sqerry = 0.0; /* Compute numerator of Pearson's R */ for (i = 0; i < nitems; i++) { errx = x[i] - meanx; erry = y[i] - meany; prodsum += errx * erry; sqerrx += errx*errx; sqerry += erry*erry; } *r = prodsum / (sqrt(sqerrx)*sqrt(sqerry)); }