필터 지우기
필터 지우기

Gaussian psychometric curve fit to the data

조회 수: 16 (최근 30일)
Janani Thiyagarajan
Janani Thiyagarajan 2017년 11월 14일
댓글: Star Strider 2017년 11월 14일
Here is the problem I am working on; this should use erfc x = 1:5; y = [0.97 0.89 0.5 0.08 0.03]; we need to get slope and bias (The bias should be close to 3 and slope should be close to 0.78 for this) I need to use cumulative gaussian anonymous function f(x) = 1/2*erf( (
  댓글 수: 2
Star Strider
Star Strider 2017년 11월 14일
Please complete your Question:
f(x) = 1/2*erf( ( ???
What parameters do you want to estimate?
Janani Thiyagarajan
Janani Thiyagarajan 2017년 11월 14일
Here is the complete question; it got truncated due to symbols usage Here is the problem I am working on; this should use erfc x = 1:5; y = [0.97 0.89 0.5 0.08 0.03]; we need to get slope and bias (The bias should be close to 3 and slope should be close to 0.78 for this) I need to use cumulative gaussian anonymous function f(x) = 1/2 ∗ erf ( (x - bias) / (slope*sqrt(2)) )

댓글을 달려면 로그인하십시오.

채택된 답변

Star Strider
Star Strider 2017년 11월 14일
This works:
x = 1:5;
y = [0.97 0.89 0.5 0.08 0.03];
f = @(p,x) 1/2 * erfc ( (x - p(1)) ./ (p(2).*sqrt(2)) );
P = fminsearch(@(p) norm(y - f(p,x)), [1; 1]);
Bias = P(1)
Slope = P(2)
Bias =
2.9815
Slope =
0.7784
  댓글 수: 2
Janani Thiyagarajan
Janani Thiyagarajan 2017년 11월 14일
Great works! thanks a lot
Star Strider
Star Strider 2017년 11월 14일
As always, my pleasure!

댓글을 달려면 로그인하십시오.

추가 답변 (0개)

카테고리

Help CenterFile Exchange에서 Curve Fitting Toolbox에 대해 자세히 알아보기

태그

Community Treasure Hunt

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

Start Hunting!

Translated by