Uses of Class
org.apache.sis.math.Fraction
Packages that use Fraction
Package
Description
Filters features according their properties.
Default set of
ObjectConverter
implementations.A set of mathematical objects and algebraic utilities.
Units of measurements, values related to measurement (like angles and ranges) and their formatters.
-
Uses of Fraction in org.apache.sis.filter
Methods in org.apache.sis.filter with parameters of type FractionModifier and TypeMethodDescriptionprotected Number
ArithmeticFunction.Add.applyAsFraction
(Fraction left, Fraction right) protected Number
ArithmeticFunction.Divide.applyAsFraction
(Fraction left, Fraction right) protected Number
ArithmeticFunction.Multiply.applyAsFraction
(Fraction left, Fraction right) protected Number
ArithmeticFunction.Subtract.applyAsFraction
(Fraction left, Fraction right) protected Number
BinaryFunction.applyAsFraction
(Fraction left, Fraction right) Calculates this function using given operands ofFraction
type.protected final Number
ComparisonFilter.applyAsFraction
(Fraction left, Fraction right) -
Uses of Fraction in org.apache.sis.internal.converter
Methods in org.apache.sis.internal.converter that return FractionModifier and TypeMethodDescriptionCreates a new fraction from the given integer.Methods in org.apache.sis.internal.converter that return types with arguments of type FractionModifier and TypeMethodDescriptionFractionConverter.FromInteger.inverse()
FractionConverter.inverse()
Returns the converter from integers to fractions.FractionConverter.FromInteger.unique()
FractionConverter.unique()
Returns the unique instance of this converter.Methods in org.apache.sis.internal.converter with parameters of type Fraction -
Uses of Fraction in org.apache.sis.math
Fields in org.apache.sis.math with type parameters of type FractionModifier and TypeFieldDescriptionprivate static final WeakHashSet<Fraction>
Fraction.POOL
Pool of fractions for which theunique()
method has been invoked.Methods in org.apache.sis.math that return FractionModifier and TypeMethodDescriptionReturns the simplified result of adding the given fraction to this fraction.Returns the simplified result of dividing this fraction by the given fraction.Returns the simplified result of multiplying the given fraction with this fraction.Fraction.negate()
Returns the negative value of this fraction.Fraction.simplify()
Returns a fraction equivalent tothis
but represented by the smallest possible numerator and denominator values.private static Fraction
Returns a fraction equivalent tonum
/den
after simplification.Returns the simplified result of subtracting the given fraction from this fraction.Fraction.unique()
Returns a unique fraction instance equals tothis
.static Fraction
Fraction.valueOf
(double value) Converts the given IEEE 754 double-precision value to a fraction.Methods in org.apache.sis.math with parameters of type FractionModifier and TypeMethodDescriptionReturns the simplified result of adding the given fraction to this fraction.int
Compares this fraction with the given one for order.Returns the simplified result of dividing this fraction by the given fraction.Returns the simplified result of multiplying the given fraction with this fraction.private static Fraction
Returns a fraction equivalent tonum
/den
after simplification.Returns the simplified result of subtracting the given fraction from this fraction. -
Uses of Fraction in org.apache.sis.measure
Fields in org.apache.sis.measure with type parameters of type FractionModifier and TypeFieldDescription(package private) final Map<UnitDimension,
Fraction> UnitDimension.components
The product of base dimensions that make this dimension.Methods in org.apache.sis.measure that return types with arguments of type FractionModifier and TypeMethodDescriptionUnitDimension.getBaseDimensions
(javax.measure.Dimension dimension) Returns the base dimensions and their exponents whose product make the given dimension.(package private) abstract Map<SystemUnit<?>,
Fraction> AbstractUnit.getBaseSystemUnits()
Returns the base units used by Apache SIS implementations.(package private) final Map<SystemUnit<?>,
Fraction> ConventionalUnit.getBaseSystemUnits()
Returns the base units used by Apache SIS implementations.(package private) final Map<SystemUnit<?>,
Fraction> SystemUnit.getBaseSystemUnits()
Returns the base units used by Apache SIS implementations.Methods in org.apache.sis.measure with parameters of type FractionModifier and TypeMethodDescription(package private) void
UnitFormat.Style.appendPower
(Appendable toAppendTo, Fraction power) Appends a rational power.private UnitDimension
Returns this dimension raised to an exponent.Method parameters in org.apache.sis.measure with type arguments of type FractionModifier and TypeMethodDescriptionprivate static UnitDimension
UnitDimension.create
(Map<UnitDimension, Fraction> components) Creates a new derived dimension from the given product of base dimensions with their power.(package private) static void
UnitRegistry.init
(Map<UnitDimension, Fraction> components, UnitDimension dim) Adds the givencomponents
,dim
pair in the map of hard-coded values.Constructor parameters in org.apache.sis.measure with type arguments of type FractionModifierConstructorDescriptionprivate
UnitDimension
(Map<UnitDimension, Fraction> components) Creates a new derived dimension.