Class ComparisonSharedState<T extends Assignment<ObjectMask>>
Object
ComparisonSharedState<T>
- Type Parameters:
T- the type ofAssignmentforObjectMask.
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 TypeMethodDescriptionCSVAssignmentThe 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 newImageCounterWithStatisticsfor a given group key.
-
-
Method Details
-
statisticsForAllGroups
Retrieves statistics for all groups.- Returns:
- a list of
StatisticsToExportfor 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
ImageCountercontaining all relevant groups for the image.
-
getAssignmentCSV
public CSVAssignment getAssignmentCSV()The CSV assignment for the comparison.
-