public final class QuantityTensors
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
static <S> Tensor<com.google.common.base.Optional<S>> |
errorsOf(Tensor<QuantifiedValue<S>> tensor) |
static <S> Tensor<S> |
errorsOfOr(Tensor<QuantifiedValue<S>> tensor,
S defaultValue) |
static <S> Tensor<QuantifiedValue<S>> |
quantityTensorOf(Tensor<S> tensor,
Unit unit) |
static <S> Tensor<QuantifiedValue<S>> |
quantityTensorOf(Tensor<S> tensor,
javax.measure.unit.Unit<?> unit) |
static <S> Unit |
unitOf(Tensor<QuantifiedValue<S>> tensor) |
static <S> Tensor<java.lang.Boolean> |
validitiesOf(Tensor<QuantifiedValue<S>> tensor) |
static <S> Tensor<S> |
valuesOf(Tensor<QuantifiedValue<S>> tensor) |
public static <S> Tensor<S> valuesOf(Tensor<QuantifiedValue<S>> tensor)
public static <S> Tensor<com.google.common.base.Optional<S>> errorsOf(Tensor<QuantifiedValue<S>> tensor)
public static <S> Tensor<S> errorsOfOr(Tensor<QuantifiedValue<S>> tensor, S defaultValue)
public static <S> Tensor<java.lang.Boolean> validitiesOf(Tensor<QuantifiedValue<S>> tensor)
public static <S> Tensor<QuantifiedValue<S>> quantityTensorOf(Tensor<S> tensor, javax.measure.unit.Unit<?> unit)
public static <S> Tensor<QuantifiedValue<S>> quantityTensorOf(Tensor<S> tensor, Unit unit)
public static <S> Unit unitOf(Tensor<QuantifiedValue<S>> tensor)