-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathspectral convolution.py
20 lines (16 loc) · 1.96 KB
/
spectral convolution.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
a = '''156.10111 498.28153 760.38677 907.45518 919.48889 1022.49808 1157.55054 1252.58835 1294.60945 1389.64726 1446.66872 1480.70989 1632.74803 1729.80079 1816.83282 1886.84436 1887.86993 1957.88147 2114.99692 2244.03951 2373.0821 2693.29814 2731.24218 2845.28511 2932.31714 3306.49077 3416.60655 3533.62899 3547.64704 3636.63818 3646.71545 3832.79476 4032.91085 4161.95344 4164.89255 4264.96263 4351.99466 4415.03552 4690.19006 4698.16759 4827.24897 5233.49305 5323.54097 5426.55016 5611.6946 5668.71606 5861.77317 6130.95834 6169.00538 6300.04587 6397.09863 6405.07616 6494.15139 6680.2307 6793.31476 6930.37367 6933.31278 7062.35537 7088.44281 7163.40305 7201.52687 7329.58545 7458.62804 7561.63723 7632.67434 7841.723 7898.74446 7944.87656 8011.82852 8075.91705 8142.86901 8270.92759 8364.02404 8515.05214 8566.08301 8722.18412 8725.18896 8826.23664 8851.22671 8980.2693 9093.35336 9207.39629 9307.49027 9408.53795 9462.51819 9511.54714 9614.55633 9648.5975 9701.58836 9705.61896 9842.67787 10024.74771 10072.76814 10334.87945 10426.87917 10483.90063 10592.017 10939.16511 11095.26622
'''.split()
b = '''114.04293 131.04049 259.09907 354.11103 390.13956 721.26021 778.28167 953.41731 1219.48288 1238.56503 1333.52581 1339.61271 1468.6553 1571.66449 1575.65246 1704.69505 1860.79616 1975.8231 2133.95083 2263.93009 2384.0938 2653.27897 2790.33788 2794.20483 2865.24194 2968.25113 2975.41792 3078.42711 3191.51117 3338.43636 3633.56441 3703.80049 4029.78054 4100.01662 4126.8333 4237.07553 4257.87379 4655.15392 4765.3299 4815.18457 4943.24315 5080.30206 5193.38612 5556.68297 5599.6302 5670.7259 5736.68911 5757.75793 5872.78487 6028.88598 6074.88451 6157.92857 6161.91654 6264.92573 6393.96832 6400.05522 6495.016 6594.08441 6672.16729 7010.27262 7379.47 7474.48196 7602.54054 7619.5381
'''.split()
s=[]
for i in a:
for j in b:
s.append('%.5f' % (float(i)-float(j)))
x=''
m=0
for n in s:
if s.count(n) > m:
m = s.count(n)
x = n
print(m)
print(x)