Package qupath.lib.analysis.stats
Interface ArrayWrappers.ArrayWrapper
- Enclosing class:
- ArrayWrappers
public static interface ArrayWrappers.ArrayWrapper
Simple wrapper for an array or list, enabling values to be returned as doubles.
- 
Method SummaryModifier and TypeMethodDescriptiondoublegetDouble(int ind) Extract one entry from the array, converting to double as necessary.default booleanisEmpty()Query ifsize() == 1returnbooleanReturns true if the array wrapper only supports integer values.intsize()Number of entries in the array.
- 
Method Details- 
sizeint size()Number of entries in the array.- Returns:
 
- 
isEmptydefault boolean isEmpty()Query ifsize() == 1return
- 
getDoubledouble getDouble(int ind) Extract one entry from the array, converting to double as necessary.- Parameters:
- ind-
- Returns:
 
- 
isIntegerWrapperboolean isIntegerWrapper()Returns true if the array wrapper only supports integer values.- Returns:
 
 
-