Class ComparisonSharedState<T extends Assignment<ObjectMask>>
Object
ComparisonSharedState<T>
- Type Parameters:
T
- the type ofAssignment
forObjectMask
.
Shared state for comparison operations, including grouping and statistics.
-
Constructor Summary
ConstructorsConstructorDescriptionComparisonSharedState
(CSVAssignment assignmentCSV, int numberLevelsGrouping, Function<String, ImageCounterWithStatistics<T>> funcCreateGroup) Creates a newComparisonSharedState
. -
Method Summary
Modifier and TypeMethodDescriptionCSVAssignment
The CSV assignment for the comparison.groupsForImage
(SplitString descriptiveSplit) Retrieves the groups for a given image based on its descriptive split.Retrieves statistics for all groups.
-
Constructor Details
-
ComparisonSharedState
public ComparisonSharedState(CSVAssignment assignmentCSV, int numberLevelsGrouping, Function<String, ImageCounterWithStatistics<T>> funcCreateGroup) Creates a newComparisonSharedState
.- Parameters:
assignmentCSV
- the CSV assignment for the comparison.numberLevelsGrouping
- the number of levels for grouping.funcCreateGroup
- a function to create a newImageCounterWithStatistics
for a given group key.
-
-
Method Details
-
statisticsForAllGroups
Retrieves statistics for all groups.- Returns:
- a list of
StatisticsToExport
for all groups.
-
groupsForImage
Retrieves the groups for a given image based on its descriptive split.- Parameters:
descriptiveSplit
- the descriptive split for the image, can be null.- Returns:
- an
ImageCounter
containing all relevant groups for the image.
-
getAssignmentCSV
public CSVAssignment getAssignmentCSV()The CSV assignment for the comparison.
-