Private
Public Access
1
0

using upper limit for OTW breakthrough detection

This commit is contained in:
Sander Roosendaal
2017-06-27 04:10:53 +02:00
parent a8b8083b0f
commit 0f71ee9481
9 changed files with 25 additions and 13 deletions

View File

@@ -76,11 +76,13 @@ def geo_distance(lat1,lon1,lat2,lon2):
return [distance,bearing]
def isbreakthrough(delta,cpvalues,p0,p1,p2,p3):
def isbreakthrough(delta,cpvalues,p0,p1,p2,p3,ratio):
pwr = p0/(1+delta/p2)
pwr += p1/(1+delta/p3)
pwr *= ratio
res = np.sum(cpvalues>pwr)
return res>1