Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
APL でベクトル内の n 個の隣接する数値の平均ベクトルを計算するにはどうすればよいですか?
次のベクトルを考えてみましょう: a← 2 3 4 5 6
入力: 2 は 2.5 3.5 4.5 5.5 を返す必要があります。
3 は 3 4 5 を返す必要があります。
4 は 3.5 4.5 を返す必要があります。
この場合、avg←(+/a)÷⍴a は役に立ちません!