object TolerantNumerics extends TolerantNumerics
Companion object for TolerantNumerics that enables its members to be imported as an alternative to
mixing them in.
- Source
- TolerantNumerics.scala
- Alphabetic
- By Inheritance
- TolerantNumerics
- TolerantNumerics
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Value Members
- def tolerantByteEquality(tolerance: Byte): Equality[Byte]
Provides an
Equalityinstance forBytes that compares for equality with the passed tolerance.Provides an
Equalityinstance forBytes that compares for equality with the passed tolerance.- tolerance
the tolerance with which the returned
Equalitywill compareBytes.- returns
an
Equalitythat comparesBytes using the passed tolerance.
- Definition Classes
- TolerantNumerics
- def tolerantDoubleEquality(tolerance: Double): Equality[Double]
Provides an
Equalityinstance forDoubles that compares for equality with the passed tolerance.Provides an
Equalityinstance forDoubles that compares for equality with the passed tolerance.- tolerance
the tolerance with which the returned
Equalitywill compareDoubles.- returns
an
Equalitythat comparesDoubles using the passed tolerance.
- Definition Classes
- TolerantNumerics
- def tolerantEquivalence[N](tolerance: N)(implicit arg0: Numeric[N]): Equivalence[N]
Provides an
Equivalence[N]instance for any type for which aNumeric[N]is available that comparesNs for equality with the passed tolerance.Provides an
Equivalence[N]instance for any type for which aNumeric[N]is available that comparesNs for equality with the passed tolerance.- tolerance
the tolerance with which the returned
Equalitywill compareNumerics.- returns
an
Equivalencethat comparesNumerics using the passed tolerance.
- Definition Classes
- TolerantNumerics
- def tolerantFloatEquality(tolerance: Float): Equality[Float]
Provides an
Equalityinstance forFloats that compares for equality with the passed tolerance.Provides an
Equalityinstance forFloats that compares for equality with the passed tolerance.- tolerance
the tolerance with which the returned
Equalitywill compareFloats.- returns
an
Equalitythat comparesFloats using the passed tolerance.
- Definition Classes
- TolerantNumerics
- def tolerantIntEquality(tolerance: Int): Equality[Int]
Provides an
Equalityinstance forInts that compares for equality with the passed tolerance.Provides an
Equalityinstance forInts that compares for equality with the passed tolerance.- tolerance
the tolerance with which the returned
Equalitywill compareInts.- returns
an
Equalitythat comparesInts using the passed tolerance.
- Definition Classes
- TolerantNumerics
- def tolerantLongEquality(tolerance: Long): Equality[Long]
Provides an
Equalityinstance forLongs that compares for equality with the passed tolerance.Provides an
Equalityinstance forLongs that compares for equality with the passed tolerance.- tolerance
the tolerance with which the returned
Equalitywill compareLongs.- returns
an
Equalitythat comparesLongs using the passed tolerance.
- Definition Classes
- TolerantNumerics
- def tolerantShortEquality(tolerance: Short): Equality[Short]
Provides an
Equalityinstance forShorts that compares for equality with the passed tolerance.Provides an
Equalityinstance forShorts that compares for equality with the passed tolerance.- tolerance
the tolerance with which the returned
Equalitywill compareShorts.- returns
an
Equalitythat comparesShorts using the passed tolerance.
- Definition Classes
- TolerantNumerics
