Approximate
com.phasmidsoftware.number.core.misc.Approximate
The Approximate trait provides a mechanism to compute approximate representations of values of type X as Double. Implementations of this trait define how to compute this approximation while adhering to a specified maximum allowable error.
This is particularly useful for applications where an approximation with controlled precision is sufficient and can improve performance.
It operates based on an implicit epsilon value, which determines the acceptable error tolerance between the true value and the approximate result.
Type parameters
- X
-
The type of the input object to be approximated.
Attributes
- Graph
-
- Supertypes
-
class Objecttrait Matchableclass Any
Members list
In this article