A library for working with phylogenetic and population genetic data.
v0.27.0
GlmFactor< T > Struct Template Reference

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

Detailed Description

template<class T>
struct genesis::utils::GlmFactor< T >

Definition at line 51 of file factor.hpp.

Public Attributes

std::vector< T > levels
 Set of unique values of the factor. The indices in this vector are the indices that are used in values to encode each original value. More...
 
std::vector< size_t > values
 List of factor indices for the original values. More...
 

Member Data Documentation

◆ levels

std::vector<T> levels

Set of unique values of the factor. The indices in this vector are the indices that are used in values to encode each original value.

Definition at line 57 of file factor.hpp.

◆ values

std::vector<size_t> values

List of factor indices for the original values.

The values in this list are indices of the corresponding level, that is, levels[values[i]] yields the level of the ith value. Note that excluded levels (see glm_factor()) get assigned a value of max size_t, and hence cannot be looked up this way.

Definition at line 67 of file factor.hpp.


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