public class TreatmentStepMomentComparator extends java.lang.Object implements java.util.Comparator<TreatmentStep>
The intended use for this class is to determine the maximum extent of an orthogonal projection of a set of data (e.g. in a Zijderveld plot) in order to scale the plot appropriately.
Constructor and Description |
---|
TreatmentStepMomentComparator(MeasurementAxis axis,
Correction correction)
Creates a comparator which will compare magnetic moments along
the specified axis after applying the specified correction.
|
Modifier and Type | Method and Description |
---|---|
int |
compare(TreatmentStep treatmentStep1,
TreatmentStep treatmentStep2)
Compares the magnetic moments of the supplied datum objects
using the criteria specified in the constructor.
|
public TreatmentStepMomentComparator(MeasurementAxis axis, Correction correction)
axis
- measurement axis along which to compare momentscorrection
- correction to apply before comparisonpublic int compare(TreatmentStep treatmentStep1, TreatmentStep treatmentStep2)
compare
in interface java.util.Comparator<TreatmentStep>
treatmentStep1
- the first datum to be comparedtreatmentStep2
- the second datum to be comparedDouble.compare(double, double)