|
@@ 314-315 (lines=2) @@
|
| 311 |
|
conn_weight = self._conn_weight[index][k];
|
| 312 |
|
|
| 313 |
|
phase += conn_weight * self._weight * math.sin(self._phases[k] - teta);
|
| 314 |
|
|
| 315 |
|
divider = len(neighbors);
|
| 316 |
|
if (divider == 0):
|
| 317 |
|
divider = 1.0;
|
| 318 |
|
|
|
@@ 309-310 (lines=2) @@
|
| 306 |
|
|
| 307 |
|
neighbors = self.get_neighbors(index);
|
| 308 |
|
for k in neighbors:
|
| 309 |
|
conn_weight = 1.0;
|
| 310 |
|
if (self._ena_conn_weight is True):
|
| 311 |
|
conn_weight = self._conn_weight[index][k];
|
| 312 |
|
|
| 313 |
|
phase += conn_weight * self._weight * math.sin(self._phases[k] - teta);
|