fr.cnes.sirius.patrius.tools.ephemerisComparator
Class DataComparator<T>
java.lang.Object
fr.cnes.sirius.patrius.tools.ephemerisComparator.DataComparator<T>
- Type Parameters:
T - the type of the data to compare. Each subclass can put its own there in order to specialise the
computeComparison and comupteDeviation methods.
- Direct Known Subclasses:
- MeaningfulDataComparator, RawDataComparator
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.
- Since:
- 1.0
- Version:
- $Id: DataComparator.java 6320 2012-09-20 15:36:28Z CardosoP $
- Author:
- Philippe Pavero
- Concurrency :
- immutable
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
DataComparator
public DataComparator()
computeComparison
protected final ComparisonData computeComparison(boolean absolute,
Data<T> data1,
Data<T> data2,
boolean positive)
- Computes the deviation between the elements of two Data object.
- Parameters:
absolute - true if absolute comparison, relative comparison otherwisedata1 - the first data setdata2 - the second data setpositive - true if absolute value of deviations, false otherwise
- Returns:
- a Data object that contains the deviations
- Since:
- 1.0
Copyright © 2016 CNES. All Rights Reserved.