GlmFactor< T > Struct Template Reference

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

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... | |

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.

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 `i`

th 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: