Package qupath.lib.analysis.stats
Class ArrayWrappers
java.lang.Object
qupath.lib.analysis.stats.ArrayWrappers
Simple wrappers for primitive arrays that returns values as doubles.
- Author:
- Pete Bankhead
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic interface
Simple wrapper for an array or list, enabling values to be returned as doubles. -
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic ArrayWrappers.ArrayWrapper
makeDoubleArrayWrapper
(double[] array) Create a wrapper for a double array, returning values (predictably) as doubles.static ArrayWrappers.ArrayWrapper
makeFloatArrayWrapper
(float[] array) Create a wrapper for a float array, returning values as doubles.static ArrayWrappers.ArrayWrapper
makeIntArrayWrapper
(int[] array) Create a wrapper for an int array, returning values as doubles.static ArrayWrappers.ArrayWrapper
makeUnsignedByteArrayWrapper
(byte[] array) Create a wrapper for a byte array, returning values as doubles.static ArrayWrappers.ArrayWrapper
makeUnsignedShortArrayWrapper
(short[] array) Create a wrapper for a short array, returning values as doubles.
-
Constructor Details
-
ArrayWrappers
public ArrayWrappers()
-
-
Method Details
-
makeDoubleArrayWrapper
Create a wrapper for a double array, returning values (predictably) as doubles.- Parameters:
array
-- Returns:
-
makeFloatArrayWrapper
Create a wrapper for a float array, returning values as doubles.- Parameters:
array
-- Returns:
-
makeIntArrayWrapper
Create a wrapper for an int array, returning values as doubles.- Parameters:
array
-- Returns:
-
makeUnsignedByteArrayWrapper
Create a wrapper for a byte array, returning values as doubles.Bytes are treated as unsigned 8-bit values (0-255);
- Parameters:
array
-- Returns:
-
makeUnsignedShortArrayWrapper
Create a wrapper for a short array, returning values as doubles.Shorts are treated as unsigned 16-bit values (0-65535);
- Parameters:
array
-- Returns:
-