Skip to content

Commit e564188

Browse files
author
Vanessa Arndorfer
committed
use min radius
1 parent fe098c3 commit e564188

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

Simulator/Connections/Neuro/ConnGrowth.cpp

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -167,6 +167,13 @@ void ConnGrowth::updateConns(AllVertices &vertices)
167167
/ growthParams_.beta));
168168
deltaR_ = Simulator::getInstance().getEpochDuration() * growthParams_.rho * outgrowth_;
169169
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+
}
170177
}
171178

172179
/// Update the distance between frontiers of vertices.

0 commit comments

Comments
 (0)