MCPcopy Create free account
hub / github.com/daniel-e/rustml / design_matrix

Method design_matrix

src/regression.rs:173–177  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

171
172impl DesignMatrix<f64> for Matrix<f64> {
173 fn design_matrix(&self) -> Self {
174 self.insert_column(0,
175 &repeat(1.0).take(self.rows()).collect::<Vec<f64>>()
176 ).unwrap()
177 }
178}
179
180impl DesignMatrix<f32> for Matrix<f32> {

Callers 2

test_design_matrixFunction · 0.80
mainFunction · 0.80

Calls 2

insert_columnMethod · 0.80
rowsMethod · 0.80

Tested by 1

test_design_matrixFunction · 0.64