Problem 2259. Best Fit RMS
Given a set of data as x and y, find the RMS value between the data and its best fit curve from a first degree polynomial
Example
x = [1:10] y = [2 7 3 5 9 11 1 6 2 0]
bestfit_RMS = 3.3379
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Swapnali Gujar
on 1 Apr 2014
Thanks Ned. Can you please show me how can I add a torelance term for the answer in test suite?
Ryan
on 3 Apr 2014
something like this:
assert(abs(BestFit(x,y)-y_correct)<1e-5)
rifat
on 16 Jun 2014
please allow for tolerance in precision of test case answers
Solution Comments
Show commentsProblem Recent Solvers21
Suggested Problems
-
7352 Solvers
-
Make a run-length companion vector
644 Solvers
-
Find the square of the sum of the digits of a number
156 Solvers
-
Convert given decimal number to binary number.
2111 Solvers
-
Deleting an element in a matrix
472 Solvers
More from this Author25
Problem Tags
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!