フィルターのクリア

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 Center および File ExchangeCurve Fitting Toolbox についてさらに検索

タグ

Community Treasure Hunt

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

Start Hunting!

Translated by