MCPcopy Create free account
hub / github.com/brainflow-dev/brainflow / random_normal

Method random_normal

src/data_handler/fastica.cpp:136–149  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134}
135
136void FastICA::random_normal (Eigen::MatrixXd &M)
137{
138 std::random_device rd {};
139 std::mt19937 gen {rd ()};
140 std::normal_distribution<double> d {0, 1};
141
142 for (int r = 0; r < M.rows (); r++)
143 {
144 for (int c = 0; c < M.cols (); c++)
145 {
146 M (r, c) = d (gen);
147 }
148 }
149}
150
151int FastICA::get_matrixes (double *w_mat, double *k_mat, double *a_mat, double *s_mat)
152{

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected