Skip to content

logest

Exponential regression coefficients.

v = logest(knownys, knownxs, const, stat)

Fits the exponential model y = b * m^x and returns [m, b]. With const = false, forces b = 1. With stat = true, returns an extended statistics array.

logest([2 4 8 16], [1 2 3 4]) % [2 1]
  • linest — Linear regression coefficients (with optional statistics).
  • growth — Exponential-trend predictions.