Github user srowen commented on the pull request:
https://github.com/apache/spark/pull/1425#issuecomment-49713754
Is it possible to support syntax like `0.3 +- 0.1` for absolute error, and
`0.3 +- 10%` for relative error? Seems like the kind of crazy thing that Scala
just might support. Maybe it's a nice way to support both semantics; I think
relative error semantics have to be a separate method anwayy.
Also, there is the method `Math.ulp`
(http://docs.oracle.com/javase/7/docs/api/java/lang/Math.html#ulp(double))
whichs tell you how big the gap is between floating-point values around a given
value. How about using this to pick a reasonable absolute error around the
test's expected value? At least it scales automatically.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---