A toolkit for working with phylogenetic data.
v0.24.0
GlmLink Struct Reference

#include <genesis/utils/math/regression/link.hpp>

Detailed Description

Definition at line 45 of file utils/math/regression/link.hpp.

Public Types

enum  Link {
  kUnknown, kLogit, kLog, kIdentity,
  kInverse
}
 List of common GLM Link functions. More...
 

Public Attributes

std::function< double(double mu)> derivative
 Derivative of the link function. More...
 
Link id = kUnknown
 Internal ID, used to check if the link is the canonical one for a distribution family. More...
 
std::function< double(double eta)> inverse_link
 Inverse of the link function. More...
 
std::function< double(double mu)> link
 Link function. More...
 

Member Enumeration Documentation

◆ Link

enum Link

List of common GLM Link functions.

Enumerator
kUnknown 
kLogit 
kLog 
kIdentity 
kInverse 

Definition at line 50 of file utils/math/regression/link.hpp.

Member Data Documentation

◆ derivative

std::function<double( double mu )> derivative

Derivative of the link function.

Definition at line 76 of file utils/math/regression/link.hpp.

◆ id

Link id = kUnknown

Internal ID, used to check if the link is the canonical one for a distribution family.

Definition at line 61 of file utils/math/regression/link.hpp.

◆ inverse_link

std::function<double( double eta )> inverse_link

Inverse of the link function.

Definition at line 71 of file utils/math/regression/link.hpp.

◆ link

std::function<double( double mu )> link

Link function.

Definition at line 66 of file utils/math/regression/link.hpp.


The documentation for this struct was generated from the following file: