Private
Public Access
1
0

added announcement for hard workout

This commit is contained in:
Sander Roosendaal
2017-10-10 14:41:23 +02:00
parent 392eff116e
commit 977c8b9a79
5 changed files with 66 additions and 7 deletions

View File

@@ -139,12 +139,17 @@ def isbreakthrough(delta,cpvalues,p0,p1,p2,p3,ratio):
pwr = abs(p0)/(1+(delta/abs(p2)))
pwr += abs(p1)/(1+(delta/abs(p3)))
dd = 0.25*(ratio-1)
pwr2 = pwr*(1+dd)
pwr *= ratio
delta = delta.values
cpvalues = cpvalues.values
res = np.sum(cpvalues>pwr)
res2 = np.sum(cpvalues>pwr2)
btdf = pd.DataFrame(
{
@@ -158,4 +163,4 @@ def isbreakthrough(delta,cpvalues,p0,p1,p2,p3,ratio):
btdf.sort_values('delta',axis=0,inplace=True)
return res>1,btdf
return res>1,btdf,res2>1