Problem 2259. Best Fit RMS
Solution Stats
Problem Comments
-
4 Comments
Show
1 older comment
Ned Gulley
on 31 Mar 2014
Nice problem Swapnali! Since it has a floating-point answer, you should specify how many significant digits you're looking for, or include a tolerance term in your test suite.
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
-
3241 Solvers
-
Make a run-length companion vector
621 Solvers
-
295 Solvers
-
Relative ratio of "1" in binary number
1065 Solvers
-
144 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!