power1

mdhelper.fit.power.power1(x: ndarray, a: float, b: float) ndarray[source]

Convenience function for the power1 model from MATLAB.

\[y=ax^b\]
Parameters:
xnumpy.ndarray

\(x\)-values.

afloat

Coefficient for the \(x^b\) term.

bfloat

Power constant \(b\) for the \(x^b\) term.

Returns:
fitnumpy.ndarray

Fitted \(y\)-values.