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.
この関数を使用して、Rの平均値と分散値を計算するのに便利だと思い mean()ますvar()。
mean()
var()
OCamlにも同様の組み込み関数があるのだろうか?
mean(x) = sum(x)/length(x) var(x) = sum((x-mean(x))^2)/(length(x)-1)
ありがとう!
OCamlには標準ライブラリにこれらの関数がありません。ただし、 GSLへのバインディングがあります。統計バインディングには、平均、分散、およびその他の多くの関数が含まれます。