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

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

Detailed Description

Internal helper structure for GLMs to calcualte the residual degrees of freedom.

Definition at line 47 of file utils/math/regression/helper.hpp.

Public Member Functions

long degrees_of_freedom (size_t rank) const
 Calculate the degrees of freedom (dfr). More...
 

Public Attributes

size_t empty_strata = 0
 Number of empty strata. More...
 
size_t max_stratum = 1
 Maximum stratum found (S). More...
 
size_t valid_entries = 0
 Number of valid priors (Nu). More...
 

Member Function Documentation

◆ degrees_of_freedom()

long degrees_of_freedom ( size_t  rank) const
inline

Calculate the degrees of freedom (dfr).

Definition at line 67 of file utils/math/regression/helper.hpp.

Member Data Documentation

◆ empty_strata

size_t empty_strata = 0

Number of empty strata.

Definition at line 57 of file utils/math/regression/helper.hpp.

◆ max_stratum

size_t max_stratum = 1

Maximum stratum found (S).

Definition at line 62 of file utils/math/regression/helper.hpp.

◆ valid_entries

size_t valid_entries = 0

Number of valid priors (Nu).

Definition at line 52 of file utils/math/regression/helper.hpp.


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