フィルターのクリア

Flexible number of paramters for MLE with custom function

1 回表示 (過去 30 日間)
Anders
Anders 2013 年 2 月 21 日
Can the custom pdf function for MLE be written for a flexible number of parameters that is determined from the vector of start values?

採用された回答

Tom Lane
Tom Lane 2013 年 2 月 22 日
Let's try it. The normpdf function uses the default sigma=1 if no standard deviation value is given.
>> x = 1 + randn(100,1);
>> mle(x,'pdf',@normpdf,'start',0)
ans =
0.8747
>> mle(x,'pdf',@normpdf,'start',[0 2])
ans =
0.8747 1.0787

その他の回答 (0 件)

タグ

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by