Class CloseTo
- java.lang.Object
-
- org.saynotobugs.confidence.quality.composite.QualityComposition<java.lang.Number>
-
- org.saynotobugs.confidence.quality.number.CloseTo
-
- All Implemented Interfaces:
Quality<java.lang.Number>
public final class CloseTo extends QualityComposition<java.lang.Number>
-
-
Constructor Summary
Constructors Constructor Description CloseTo(double expectation)AQualityof aNumberin that's within the givenεof one ulp as determined byMath.ulp(double)., i.e. any numberxwithexpectation - ulp(expectation) < x < expectation + ulp(expectation)CloseTo(double expectation, int ulpCount)AQualityof aNumberin that's within the givenεofulpCountulp as determined byMath.ulp(double)., i.e. any numberxwithexpectation - ulpCount * ulp(expectation) < x < expectation + ulpCount * ulp(expectation)CloseTo(float expectation)AQualityof aNumberin that's within the givenεof one ulp as determined byMath.ulp(float)., i.e. any numberxwithexpectation - ulp(expectation) < x < expectation + ulp(expectation)CloseTo(float expectation, int ulpCount)AQualityof aNumberin that's within the givenεofulpCountulp as determined byMath.ulp(float)., i.e. any numberxwithexpectation - ulpCount * ulp(expectation) < x < expectation + ulpCount * ulp(expectation)CloseTo(java.lang.Number expectation, java.lang.Number ε)AQualityof aNumberin that's within the givenεof the givenNumber, i.e. any numberxwithexpectation - ε < x < expectation + εCloseTo(java.math.BigDecimal expectation, java.math.BigDecimal ε)
-
Method Summary
-
Methods inherited from class org.saynotobugs.confidence.quality.composite.QualityComposition
assessmentOf, description
-
-
-
-
Constructor Detail
-
CloseTo
public CloseTo(double expectation)
AQualityof aNumberin that's within the givenεof one ulp as determined byMath.ulp(double)., i.e. any numberxwithexpectation - ulp(expectation) < x < expectation + ulp(expectation)
-
CloseTo
public CloseTo(double expectation, int ulpCount)AQualityof aNumberin that's within the givenεofulpCountulp as determined byMath.ulp(double)., i.e. any numberxwithexpectation - ulpCount * ulp(expectation) < x < expectation + ulpCount * ulp(expectation)
-
CloseTo
public CloseTo(float expectation)
AQualityof aNumberin that's within the givenεof one ulp as determined byMath.ulp(float)., i.e. any numberxwithexpectation - ulp(expectation) < x < expectation + ulp(expectation)
-
CloseTo
public CloseTo(float expectation, int ulpCount)AQualityof aNumberin that's within the givenεofulpCountulp as determined byMath.ulp(float)., i.e. any numberxwithexpectation - ulpCount * ulp(expectation) < x < expectation + ulpCount * ulp(expectation)
-
CloseTo
public CloseTo(java.lang.Number expectation, java.lang.Number ε)AQualityof aNumberin that's within the givenεof the givenNumber, i.e. any numberxwithexpectation - ε < x < expectation + ε
-
CloseTo
public CloseTo(java.math.BigDecimal expectation, java.math.BigDecimal ε)
-
-