Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
total = sum(eigen_vals)
distribution = [100 * (i/total) for i in sorted(eigen_vals, reverse=True)]
cumulative_distribution = []
sum = 0
for i in distribution:
sum += i
cumulative_distribution.append(sum)
bottom = [0] + cumulative_distribution[:-1]
left = [2*x for x in range(7)]
right = map(lambda x: x+1, left)
print(cumulative_distribution)
print(len(cumulative_distribution))
print(bottom)
print(len(bottom))
print(list(left))
print(list(right))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment