|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectfr.cnes.sirius.patrius.tools.ephemerisComparator.DataComparator<Double>
fr.cnes.sirius.patrius.tools.ephemerisComparator.RawDataComparator
public class RawDataComparator
this class is used to compare two sets of data, possibly using thresholds.
It can compute both absolute and relative deviation between the elements of the Data objects.
Data
,
Serialized FormConstructor Summary | |
---|---|
RawDataComparator()
|
Method Summary | |
---|---|
ComparisonData |
computeAbsoluteDeviation(Data<Double> data1,
Data<Double> data2,
boolean positive)
Computes the absolute deviation between the elements of two Data object. |
protected static double |
computeAbsoluteDeviation(double x,
double y,
boolean positive)
Computes the absolute deviation between two double precision values. |
ComparisonData |
computeRelativeDeviation(Data<Double> data1,
Data<Double> data2,
boolean positive)
Computes the relative deviation between the elements of two Data object. |
protected static double |
computeRelativeDeviation(double x,
double y,
double eps)
Computes the relative deviation between two double precision values. |
Methods inherited from class fr.cnes.sirius.patrius.tools.ephemerisComparator.DataComparator |
---|
computeComparison |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public RawDataComparator()
Method Detail |
---|
public final ComparisonData computeAbsoluteDeviation(Data<Double> data1, Data<Double> data2, boolean positive)
data1
- the first data setdata2
- the second data setpositive
- true if absolute value of deviations, false otherwise
public final ComparisonData computeRelativeDeviation(Data<Double> data1, Data<Double> data2, boolean positive)
data1
- the first data setdata2
- the second data setpositive
- true if absolute value of deviations, false otherwise
protected static final double computeAbsoluteDeviation(double x, double y, boolean positive)
x
- the first valuey
- the second valuepositive
- true if absolute value of deviations, false otherwise
protected static final double computeRelativeDeviation(double x, double y, double eps)
x
- the first valuey
- the second valueeps
- the threshold under which a number is considered 0
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |