Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
Paytonco committed Jan 30, 2022
2 parents 1111f8c + 590bf41 commit aac62cc
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions evac_percent.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import math
import numpy as np

e1 = [2109, 3136, 1623, 573, 1205, 1277, 408, 1689]
e2 = [22712, 34864, 17599, 6119, 13332, 13400, 4636, 17850]
e3 = [76165, 115761, 57483, 20105, 43531, 44517, 15493, 58874]

e1 = np.array(e1)
e1perc = e1/sum(e1)

newlist = np.zeros(e1perc.shape)
for i in range(len(e1perc)):
newlist[i] = sum(e1perc[0:i+1])


print(e1perc)
print(newlist)

0 comments on commit aac62cc

Please sign in to comment.