Skip to content

Instantly share code, notes, and snippets.

@infinite-Joy
Created August 5, 2017 06:24
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
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