public class TreatmentStepMomentComparator extends Object implements 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.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
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 Comparator<TreatmentStep>
treatmentStep1
- the first datum to be comparedtreatmentStep2
- the second datum to be comparedDouble.compare(double, double)
Copyright © 2022. All rights reserved.