split
Splits a ScientificArray into a list of DefaultScientificValue of all the values in the array
Return
a list of DefaultScientificValue in Unit for all values stored in the array
Type Parameters
the type of PhysicalQuantity of the unit
the type of AbstractScientificUnit of the array
the type of Number stored in the array
Splits a ScientificArray into a list of DefaultScientificValue in TargetUnit of all the values in the array
Return
a list of DefaultScientificValue in TargetUnit for all values stored in the array
Parameters
the TargetUnit the resulting DefaultScientificValue should be in
Type Parameters
the type of PhysicalQuantity of the unit
the type of ScientificUnit of the array
the type of Number stored in the array
the type of AbstractScientificUnit the resulting DefaultScientificValue should be in
Splits a ScientificArray into a list of TargetValue of all the values in the array
Return
a list of TargetValue for all values stored in the array
Parameters
method for creating TargetValue from a Decimal and Unit
Type Parameters
the type of PhysicalQuantity of the unit
the type of ScientificUnit of the array
the type of Number stored in the array
the type of ScientificValue to return
Splits a ScientificArray into a list of TargetValue of all the values in the array
Return
a list of TargetValue for all values stored in the array
Parameters
the TargetUnit the resulting TargetValue should be in
method for creating TargetValue from a Decimal and TargetUnit
Type Parameters
the type of PhysicalQuantity of the unit
the type of ScientificUnit of the array
the type of Number stored in the array
the type of ScientificUnit the resulting TargetValue should be in
the type of ScientificValue to return
Splits a ScientificValue of ValueUnit into a LeftValue and RightValue so that left and right together are equal to the original value. Splitting happens by rounding the ValueUnit down to scale and returning it and the remainder converted to RightUnit.
Splitting can only be done between SystemScientificUnit using the same MeasurementSystem. To account for rounding errors, a roundingThreshold can be set. If the non-rounded LeftValue is within this threshold, it will be rounded up.
Return
a Pair of LeftValue and RightValue where LeftValue is rounded down to scale and RightValue contains the remainder.
Parameters
the RightUnit to split into.
the number of decimals to which to round LeftValue
a factory method for creating LeftValue
a factory method for creating RightValue
Type Parameters
the MeasurementSystem of the units to split
the PhysicalQuantity of the units to split
the ScientificUnit of the ScientificValue to split and use as the left (rounded) unit for LeftValue
the ScientificValue that will be returned as the left (rounded) value
the SystemScientificUnit to use as the right unit for RightValue. It is recommended that 1 RightUnit<1 ValueUnit
the ScientificValue that will be returned as the right value
Splits a ScientificValue of ValueUnit into a DefaultScientificValue of ValueUnit and DefaultScientificValue of RightUnit so that left and right together are equal to the original value. Splitting happens by rounding the ValueUnit down to scale and returning it and the remainder converted to RightUnit.
Splitting can only be done between SystemScientificUnit using the same MeasurementSystem. To account for rounding errors, a roundingThreshold can be set. If the non-rounded value in ValueUnit is within this threshold, it will be rounded up.
Return
a Pair of DefaultScientificValue and RightUnit where in ValueUnit and RightUnit respectively where the value in ValueUnit is rounded down to scale and the value in RightUnit contains the remainder.
Parameters
the RightUnit to split into.
the number of decimals to which to round the value of ValueUnit
Type Parameters
the MeasurementSystem of the units to split
the PhysicalQuantity of the units to split
the ScientificUnit of the ScientificValue to split and to use as the left (rounded) unit the left DefaultScientificValue
the SystemScientificUnit to use as the right unit for the right DefaultScientificValue. It is recommended that 1 RightUnit<1 ValueUnit
Splits a ScientificValue of ValueUnit into a LeftValue and RightValue so that left and right together are equal to the original value. Splitting happens by converting the ValueUnit to LeftUnit and then rounding down to scale and returning it and the remainder converted to RightUnit.
Splitting can only be done between SystemScientificUnit using the same MeasurementSystem. To account for rounding errors, a roundingThreshold can be set. If the non-rounded LeftValue is within this threshold, it will be rounded up.
Return
a Pair of LeftValue and RightValue where LeftValue is rounded down to scale and RightValue contains the remainder.
Parameters
the LeftUnit to split (and round)
the RightUnit to split into.
the number of decimals to which to round LeftValue
a factory method for creating LeftValue
a factory method for creating RightValue
Type Parameters
the MeasurementSystem of the units to split
the PhysicalQuantity of the units to split
the ScientificUnit of the ScientificValue to split
the SystemScientificUnit to use as the left (rounded) unit for LeftValue
the ScientificValue that will be returned as the left (rounded) value
the SystemScientificUnit to use as the right unit for RightValue. It is recommended that 1 RightUnit<1 LeftUnit
the ScientificValue that will be returned as the right value
Splits a ScientificValue of ValueUnit into a DefaultScientificValue of LeftUnit and DefaultScientificValue of RightUnit so that left and right together are equal to the original value. Splitting happens by converting the ValueUnit to LeftUnit and then rounding down to scale and returning it and the remainder converted to RightUnit.
Splitting can only be done between SystemScientificUnit using the same MeasurementSystem. To account for rounding errors, a roundingThreshold can be set. If the non-rounded value in LeftUnit is within this threshold, it will be rounded up.
Return
a Pair of DefaultScientificValue and RightUnit where in LeftUnit and RightUnit respectively where the value in LeftUnit is rounded down to scale and the value in RightUnit contains the remainder.
Parameters
the LeftUnit to split (and round)
the RightUnit to split into.
the number of decimals to which to round the value of LeftUnit
Type Parameters
the MeasurementSystem of the units to split
the PhysicalQuantity of the units to split
the ScientificUnit of the ScientificValue to split
the SystemScientificUnit to use as the left (rounded) unit the left DefaultScientificValue
the SystemScientificUnit to use as the right unit for the right DefaultScientificValue. It is recommended that 1 RightUnit<1 LeftUnit