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 Summary
Modifier 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
-
size
int size()Number of entries in the array.- Returns:
-
isEmpty
default boolean isEmpty()Query ifsize() == 1return -
getDouble
double getDouble(int ind) Extract one entry from the array, converting to double as necessary.- Parameters:
ind-- Returns:
-
isIntegerWrapper
boolean isIntegerWrapper()Returns true if the array wrapper only supports integer values.- Returns:
-