Skip to content

Commit bd94e85

Browse files
src/radmeth/radmeth_model.hpp: added accessor for number of parameters
1 parent 6c20888 commit bd94e85

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

src/radmeth/radmeth_model.hpp

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -107,6 +107,11 @@ struct Regression {
107107
return design.n_groups();
108108
}
109109

110+
[[nodiscard]] std::size_t
111+
n_params() const {
112+
return n_factors() + 1;
113+
}
114+
110115
[[nodiscard]] std::size_t
111116
props_size() const {
112117
return std::size(props.mc);

0 commit comments

Comments
 (0)