ReciprocalLink<T>
Models & Types · AiDotNet.LinkFunctions
Inverse (reciprocal) link function: g(μ) = 1/μ.
Implements: ILinkFunction<T>
For Beginners
Use this when doubling a predictor halves the response (inverse relationship). Common in:
- Time-to-event data with constant hazard
- Some physics/engineering applications
Note: The inverse link can produce negative predictions, so ensure the linear predictor stays positive for meaningful results.
How It Works
The inverse link is the canonical link for the Gamma distribution. It’s useful when the relationship is inversely proportional.
Constructors
| Constructor | Summary |
|---|---|
ReciprocalLink() |
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) |