LogLink<T>

Models & Types · AiDotNet.LinkFunctions

Log link function: g(μ) = log(μ).

Implements: ILinkFunction<T>

For Beginners

Use this when your response variable is always positive:

  • Count data (number of events)
  • Positive continuous values (income, time, distance)

The log link ensures predictions are always positive (after inverse transform). A one-unit increase in a predictor multiplies the expected response by exp(β).

How It Works

The log link is the canonical link for the Poisson distribution and is also commonly used with Gamma and other positive-valued distributions. It maps positive values to (-∞,∞).

Constructors

Constructor Summary
LogLink()

Properties

Property Summary
bool IsCanonical { get; }
string Name { get; }

Methods

Method Summary
T InverseLink(T eta)
T InverseLinkDerivative(T eta)
T Link(T mu)
T LinkDerivative(T mu)
T Variance(T mu)