Commit 48a7c780cf8b43b929c4174b8fdbaaf6d8eaec8f

Authored by David Mayerich
1 parent 478f365a

added a fiber diagram to the NWT file format powerpoint

Showing 2 changed files with 2 additions and 2 deletions   Show diff stats
stim/biomodels/nwt_format.pptx
No preview for this file type
stim/iVote/ivote2.cuh
@@ -64,7 +64,7 @@ namespace stim { @@ -64,7 +64,7 @@ namespace stim {
64 } 64 }
65 65
66 T th_step = ((Imax - Imin) / th_num); 66 T th_step = ((Imax - Imin) / th_num);
67 - vector<T> var_b; 67 + std::vector<T> var_b;
68 for (unsigned int t0 = 0; t0 < th_num; t0++) { 68 for (unsigned int t0 = 0; t0 < th_num; t0++) {
69 T th = t0 * th_step + Imin; 69 T th = t0 * th_step + Imin;
70 unsigned int n_b(0), n_o(0); //these variables save the number of elements that are below and over the threshold 70 unsigned int n_b(0), n_o(0); //these variables save the number of elements that are below and over the threshold
@@ -86,7 +86,7 @@ namespace stim { @@ -86,7 +86,7 @@ namespace stim {
86 var_b.push_back(n_b * n_o * pow((m_b - m_o), 2)); 86 var_b.push_back(n_b * n_o * pow((m_b - m_o), 2));
87 } 87 }
88 88
89 - vector<float>::iterator max_var = std::max_element(var_b.begin(), var_b.end()); //finding maximum elements in the vector 89 + std::vector<float>::iterator max_var = std::max_element(var_b.begin(), var_b.end()); //finding maximum elements in the vector
90 size_t th_idx = std::distance(var_b.begin(), max_var); 90 size_t th_idx = std::distance(var_b.begin(), max_var);
91 T threshold = Imin + (T)(th_idx * th_step); 91 T threshold = Imin + (T)(th_idx * th_step);
92 return threshold; 92 return threshold;