Weighted fit using fmincon
조회 수: 4 (최근 30일)
이전 댓글 표시
I am trying to fit a logistic function to some data, and I've been using fmincon with success. One thing that I would like to implement in my fitting procedure is to fit the data in a weighted fashion... that is, if I have fewer observations for one of the data points I'm trying to fit, the fitting procedure will be less sensitive to that data point.
nlinfit in matlab has this functionality, but in general I find that function too hard to customize and have had better results with fmincon. I'm relatively unfamiliar with adding constraints to fmincon, but maybe there is an easy way to implement this? I appreciate any ideas!
댓글 수: 0
채택된 답변
Fabio Freschi
2020년 3월 3일
How about to repeat the samples of the points you want to weight more?
댓글 수: 3
추가 답변 (0개)
참고 항목
카테고리
Help Center 및 File Exchange에서 Least Squares에 대해 자세히 알아보기
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!