質問編集履歴
2
``` の挿入
test
CHANGED
File without changes
|
test
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
|
7
7
|
### 実現したいこと
|
8
8
|
分離ルールで引数として持ってきているnがどこから持ってきた何なのかが分からないので説明して頂けると嬉しいです。
|
9
|
-
|
9
|
+
```
|
10
10
|
for i in a:
|
11
11
|
if i != n:
|
12
12
|
d = self.agent[n]['p'] - self.agent[i]['p']
|
@@ -15,7 +15,7 @@
|
|
15
15
|
if cnt == 0:
|
16
16
|
return 0
|
17
17
|
return v/cnt#AGENT
|
18
|
-
|
18
|
+
```
|
19
19
|
v += d / self.dist[n][i]**2#np.linalg.norm(d)の計算式の処理は理解できるのですが、それで何を求めているのかが分からないので教えて頂けると嬉しいです。
|
20
20
|
|
21
21
|
|
1
コードの先頭と最後に```を挿入
test
CHANGED
File without changes
|
test
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
|
22
22
|
|
23
23
|
### 該当のソースコード
|
24
|
-
|
24
|
+
```
|
25
25
|
import numpy as np
|
26
26
|
import matplotlib.pyplot as plt
|
27
27
|
import matplotlib.animation as animation
|
@@ -120,7 +120,7 @@
|
|
120
120
|
|
121
121
|
ani = animation.ArtistAnimation(fig, ims, interval=20, repeat=False)
|
122
122
|
HTML(ani.to_jshtml())
|
123
|
-
|
123
|
+
```
|
124
124
|
### 試したこと
|
125
125
|
|
126
126
|
ここに問題に対して試したことを記載してください。
|