power

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

General power model.

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

\(x\)-values.

afloat

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

bfloat

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

cfloat, keyword-only, default: 0

Constant for the \(y\)-intercept.

Returns:
fitnumpy.ndarray

Fitted \(y\)-values.