Flexible number of paramters for MLE with custom function
조회 수: 1 (최근 30일)
이전 댓글 표시
Can the custom pdf function for MLE be written for a flexible number of parameters that is determined from the vector of start values?
댓글 수: 0
채택된 답변
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
추가 답변 (0개)
참고 항목
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!