プログラムの中から最小二乗 fit のライブラリを使いたくてちょっと調べる。
モンテカルロ的に状況を変えながら最小二乗で得られた値を指標に使おうと思っているのでインタラクティブなの操作がいるものは没。 Mathematica は使ったことがないので没(笑)。
折角なので gsl でやろうかと思うと、これがあきれるほど面倒で参ってしまう。
汎用的なデザイン、というつもりなのかもしれないが、実質的に利用可能なアルゴリズム1種、導関数必須、データ構造決め打ち、最後に収束判定は自分で書けと来た。
萎えるな〜。 C++ でガワを作っとくかな。
用意するもの
プログラムの流れ
[referer:
The script did not produce proper HTTP headers. Please see the error log to see the detail of the errors. Depending on the server configuration, you can also run thisscript under CGIWrap debugging. Usually, either rename or linkthe script temporarily to a file which ends with .cgidextension, or add a AddHandler cgi-script-debug .cgiline to your .htaccess file.
]