fr.cnes.sirius.patrius.tools.ephemerisComparator
Class DataComparator<T>

java.lang.Object
  extended by 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

Constructor Summary
DataComparator()
           
 
Method Summary
protected  ComparisonData computeComparison(boolean absolute, Data<T> data1, Data<T> data2, boolean positive)
          Computes the deviation between the elements of two Data object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DataComparator

public DataComparator()
Method Detail

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 otherwise
data1 - the first data set
data2 - the second data set
positive - 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.