Package sc.fiji.snt.analysis.curation
Record Class PlausibilityCheck.Measurements
java.lang.Object
java.lang.Record
sc.fiji.snt.analysis.curation.PlausibilityCheck.Measurements
- Record Components:
values- the raw metric values (one per fork, node-pair, run, or path depending on the check). Nevernull.notAssessable- the number of candidate units (forks, paths, etc.) that could not be evaluated (too few nodes, missing radii, missing image, etc.).metric- short human-readable name of the metric used as the histogram's x-axis label.unit- unit string ("µm","ratio", or""when dimensionless).subject- singular noun describing what each value counts ("fork","path","cross-over","node pair","monotonic run", etc.).domainMin- optional lower bound of the metric's natural domain.Double.NaNwhen unknown.domainMax- optional upper bound of the metric's natural domain.Double.NaNwhen unknown.emptyHint- optional check-specific message shown to the user when the result is empty or unassessable
- Enclosing class:
PlausibilityCheck
public static record PlausibilityCheck.Measurements(double[] values, int notAssessable, String metric, String unit, String subject, double domainMin, double domainMax, String emptyHint)
extends Record
Full distribution of a check's raw measurements across a reconstruction, collected without applying the
warning threshold. Powers the per-check histogram popups in the Curation Assistant: showing the user where their
data sits relative to the configured threshold is more informative than
showing only the flagged subset.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final PlausibilityCheck.MeasurementsSentinel returned when no measurements can be produced. -
Constructor Summary
ConstructorsConstructorDescriptionMeasurements(double[] values, int notAssessable, String metric, String unit, String subject, double domainMin, double domainMax, String emptyHint) Compact constructor: guarantees non-null arrays and strings. -
Method Summary
Modifier and TypeMethodDescriptionintassessed()doubleReturns the value of thedomainMaxrecord component.doubleReturns the value of thedomainMinrecord component.Returns the value of theemptyHintrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.booleanisEmpty()metric()Returns the value of themetricrecord component.intReturns the value of thenotAssessablerecord component.subject()Returns the value of thesubjectrecord component.final StringtoString()Returns a string representation of this record class.unit()Returns the value of theunitrecord component.double[]values()Returns the value of thevaluesrecord component.Returns a copy of this record withemptyHintreplaced.
-
Field Details
-
EMPTY
Sentinel returned when no measurements can be produced.
-
-
Constructor Details
-
Method Details
-
withHint
Returns a copy of this record withemptyHintreplaced. Avoids forcing everymeasure()call site to pass a hint through the constructor when only special cases need one. -
isEmpty
public boolean isEmpty()- Returns:
trueif no values were collected.
-
assessed
public int assessed()- Returns:
- the count of evaluated units (size of
values).
-
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 '=='. -
values
public double[] values()Returns the value of thevaluesrecord component.- Returns:
- the value of the
valuesrecord component
-
notAssessable
public int notAssessable()Returns the value of thenotAssessablerecord component.- Returns:
- the value of the
notAssessablerecord component
-
metric
Returns the value of themetricrecord component.- Returns:
- the value of the
metricrecord component
-
unit
Returns the value of theunitrecord component.- Returns:
- the value of the
unitrecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
domainMin
public double domainMin()Returns the value of thedomainMinrecord component.- Returns:
- the value of the
domainMinrecord component
-
domainMax
public double domainMax()Returns the value of thedomainMaxrecord component.- Returns:
- the value of the
domainMaxrecord component
-
emptyHint
Returns the value of theemptyHintrecord component.- Returns:
- the value of the
emptyHintrecord component
-