skg.pow_fit¶
-
skg.
pow_fit
(x, y, sorted=True)[source]¶ Power fit of the form .
This implementation is based on the approximate solution to integral equation (22), presented in Régressions et équations intégrales. A power fit is regarded as an exponential fit with a logarithmically scaled x-axis in this algorightm.
Parameters: - x (array-like) – The x-values of the data points. The fit will be performed on a raveled version of this array. All elements must be positive.
- y (array-like) – The y-values of the data points corresponding to x. Must be the same size as x. The fit will be performed on a raveled version of this array.
- sorted (bool) – Set to True if x is already monotonically increasing or decreasing. If False, x will be sorted into increasing order, and y will be sorted along with it.
Returns: a, b, c – A three-element array containing the estimated additive and multiplicative biases and power, in that order.
Return type: References