Why this total residual error shows 0.5?

1 次查看(过去 30 天)
I confirm the function 'findchangepts' following code.
findchangepts([0 1 2],'MinThreshold',0.5)
this result shows total residual error = 0.5. But, in my understanding, each points of residual error are 0, -0.5, +0.5, so the total residual error is 0. Because the values of residual error is each points to red line.
Could you explain me why this total residual value is 0.5?

采纳的回答

Shunichi Kusano
Shunichi Kusano 2019-12-17
Hi Kazuki,
as described in the documentation, it is "the sum of the residual (squared) error".
Hence, in this case, 0^2 + (+0.5)^2 + (-0.5)^2 = 0.5.
HTH.
  1 个评论
Spreadea
Spreadea 2019-12-17
编辑:Spreadea 2019-12-17
I see,I just miss understanding. Thank you very much answer for me!!

请先登录,再进行评论。

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Annotations 的更多信息

产品


版本

R2017a

Community Treasure Hunt

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

Start Hunting!

Translated by