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