Entering edit mode
22 months 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 ?