explanation of code
0
0
Entering edit mode
3.2 years ago
desptsp • 0
observed_statistics_np = np.array(observed_statistics) 
allDifs = []
goodIndexes = []
for i in range(num_replicates):
    d = np.linalg.norm(observed_statistics_np - np.array(sim_stats[i]))
    allDifs.append(d)
    if( d < 50):
        goodIndexes.append(i)

allDifs
len(goodIndexes)

Can anyone please help me understand what this code does ?

np.linalg.norm statistics • 504 views
ADD COMMENT

Login before adding your answer.

Traffic: 3067 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6