T
- the type of the data to compare. Each subclass can put its own there in order to specialise the
computeComparison and comupteDeviation methods.public abstract class DataComparator<T> extends Object
Parent to the data comparators, this class provides the main computeComparison function. Each subclass will then implements its own computeDeviation method.
Constructor and Description |
---|
DataComparator() |
Modifier and Type | Method and Description |
---|---|
ComparisonData |
computeComparison(boolean absolute,
Data<T> data1,
Data<T> data2,
boolean positive)
Computes the deviation between the elements of two Data object.
|
public final ComparisonData computeComparison(boolean absolute, Data<T> data1, Data<T> data2, boolean positive)
absolute
- true if absolute comparison, relative comparison otherwisedata1
- the first data setdata2
- the second data setpositive
- true if absolute value of deviations, false otherwiseCopyright © 2019 CNES. All Rights Reserved.