= pd.read_csv("../data/mmpcurve.csv")
df = MMP(df['Secs'], df['Watts']) mmp
MMP
Utilities to manipulate power duration curves, fit them and do what-if analysis
The power_curve function will be fitted to its parameters, with reasonable bounds
MMP
MMP (x, y)
A Mean Max Power curve
Details | |
---|---|
x | Time |
y | Power |
Load a mean maximal curve, with time in seconds and corresponding watts
@patch
def newBest(self:MMP, secs, watts):
= (self.x<=secs) & (self.y<watts)
newbest self.y.loc[newbest] = watts
=(10,6))
plt.figure(figsize
plt.plot(mmp.x, mmp.y)'log')
plt.xscale( plt.show()
100, 400) mmp.newBest(
=(10,6))
plt.figure(figsize
plt.plot(mmp.x, mmp.y)'log')
plt.xscale( plt.show()