Package qupath.bioimageio.spec.tensor
Class Tensors.IntervalOrRatioDataDescription
java.lang.Object
qupath.bioimageio.spec.tensor.Tensors.IntervalOrRatioDataDescription
- All Implemented Interfaces:
TensorDataDescription
- Enclosing class:
- Tensors
public static class Tensors.IntervalOrRatioDataDescription
extends Object
implements TensorDataDescription
A description of the possible ratio data values in a tensor.
-
Method Details
-
getType
Get the data type of the ratio- Returns:
- The data type
-
getRange
Get the range (if present)- Returns:
- the range
-
getUnit
Get the unit of the ratio- Returns:
- should be "arbitrary unit" or an SI unit
-
getScale
public float getScale()Scale for data on an interval (or ratio) scale.- Returns:
- A float (default is 1)
-
getOffset
public float getOffset()Offset for data on a ratio scale.- Returns:
- a possibly null float
-