Package sc.fiji.snt.util
Record Class CrossoverFinder.CrossoverEvent
java.lang.Object
java.lang.Record
sc.fiji.snt.util.CrossoverFinder.CrossoverEvent
- Record Components:
x- X-coordinate of crossover center in real world unitsy- Y-coordinate of crossover center in real world unitsz- Z-coordinate of crossover center in real world unitsparticipants- Unique paths taking part in the crossovermedianAngleDeg- Median crossing angle between local tangentsmedianMinDist- Median segment-to-segment closest distance (real world units)indexWindow- Min/max of node indices per path near the event
- Enclosing class:
CrossoverFinder
public static record CrossoverFinder.CrossoverEvent(double x, double y, double z, Set<Path> participants, double medianAngleDeg, double medianMinDist, Map<Path,IntSummaryStatistics> indexWindow)
extends Record
One detected crossover event.
-
Constructor Summary
ConstructorsConstructorDescriptionCrossoverEvent(double x, double y, double z, Set<Path> participants, double medianAngleDeg, double medianMinDist, Map<Path, IntSummaryStatistics> indexWindow) Creates an instance of aCrossoverEventrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theindexWindowrecord component.doubleReturns the value of themedianAngleDegrecord component.doubleReturns the value of themedianMinDistrecord component.Returns the value of theparticipantsrecord component.toString()Returns a string representation of this record class.doublex()Returns the value of thexrecord component.double[]xyzct()The XYZCT locations (ImagePlus nomenclature with ZCT 1-based indices) of the event center.doubley()Returns the value of theyrecord component.doublez()Returns the value of thezrecord component.
-
Constructor Details
-
CrossoverEvent
public CrossoverEvent(double x, double y, double z, Set<Path> participants, double medianAngleDeg, double medianMinDist, Map<Path, IntSummaryStatistics> indexWindow) Creates an instance of aCrossoverEventrecord class.- Parameters:
x- the value for thexrecord componenty- the value for theyrecord componentz- the value for thezrecord componentparticipants- the value for theparticipantsrecord componentmedianAngleDeg- the value for themedianAngleDegrecord componentmedianMinDist- the value for themedianMinDistrecord componentindexWindow- the value for theindexWindowrecord component
-
-
Method Details
-
xyzct
public double[] xyzct()The XYZCT locations (ImagePlus nomenclature with ZCT 1-based indices) of the event center. Ifparticipantsare associated with multiple channels/frames, their mean position is retrieved. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with '=='. -
x
public double x()Returns the value of thexrecord component.- Returns:
- the value of the
xrecord component
-
y
public double y()Returns the value of theyrecord component.- Returns:
- the value of the
yrecord component
-
z
public double z()Returns the value of thezrecord component.- Returns:
- the value of the
zrecord component
-
participants
Returns the value of theparticipantsrecord component.- Returns:
- the value of the
participantsrecord component
-
medianAngleDeg
public double medianAngleDeg()Returns the value of themedianAngleDegrecord component.- Returns:
- the value of the
medianAngleDegrecord component
-
medianMinDist
public double medianMinDist()Returns the value of themedianMinDistrecord component.- Returns:
- the value of the
medianMinDistrecord component
-
indexWindow
Returns the value of theindexWindowrecord component.- Returns:
- the value of the
indexWindowrecord component
-