Package sc.fiji.snt.util
Record Class TreeUtils.EndpointClusterAnalysis
java.lang.Object
java.lang.Record
sc.fiji.snt.util.TreeUtils.EndpointClusterAnalysis
- Record Components:
useStartNodes- true if start nodes form the tighter cluster (should be the root)clusterCentroid- the centroid of the tighter clustervariance- the variance (spread) of the tighter cluster
- Enclosing class:
TreeUtils
public static record TreeUtils.EndpointClusterAnalysis(boolean useStartNodes, PointInImage clusterCentroid, double variance)
extends Record
Result of analyzing which endpoint cluster (starts vs ends) is tighter.
-
Constructor Summary
ConstructorsConstructorDescriptionEndpointClusterAnalysis(boolean useStartNodes, PointInImage clusterCentroid, double variance) Creates an instance of aEndpointClusterAnalysisrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theclusterCentroidrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.final StringtoString()Returns a string representation of this record class.booleanReturns the value of theuseStartNodesrecord component.doublevariance()Returns the value of thevariancerecord component.
-
Constructor Details
-
EndpointClusterAnalysis
public EndpointClusterAnalysis(boolean useStartNodes, PointInImage clusterCentroid, double variance) Creates an instance of aEndpointClusterAnalysisrecord class.- Parameters:
useStartNodes- the value for theuseStartNodesrecord componentclusterCentroid- the value for theclusterCentroidrecord componentvariance- the value for thevariancerecord component
-
-
Method Details
-
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 '=='. -
useStartNodes
public boolean useStartNodes()Returns the value of theuseStartNodesrecord component.- Returns:
- the value of the
useStartNodesrecord component
-
clusterCentroid
Returns the value of theclusterCentroidrecord component.- Returns:
- the value of the
clusterCentroidrecord component
-
variance
public double variance()Returns the value of thevariancerecord component.- Returns:
- the value of the
variancerecord component
-