We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fe098c3 commit e564188Copy full SHA for e564188
Simulator/Connections/Neuro/ConnGrowth.cpp
@@ -167,6 +167,13 @@ void ConnGrowth::updateConns(AllVertices &vertices)
167
/ growthParams_.beta));
168
deltaR_ = Simulator::getInstance().getEpochDuration() * growthParams_.rho * outgrowth_;
169
radii_ += deltaR_;
170
+
171
+ // limit the min radius
172
+ for (int i = 0; i < radiiSize_; i++) {
173
+ if (radii_[i] < growthParams_.minRadius) {
174
+ radii_[i] = growthParams_.minRadius;
175
+ }
176
177
}
178
179
/// Update the distance between frontiers of vertices.
0 commit comments