java.lang.Object
org.zfcj.math.numbers.RealAbsoluteValue
- All Implemented Interfaces:
org.zfcj.math.set.Function<RealNumber,
,RealNumber> org.zfcj.math.set.relation.BinaryRelation<RealNumber,
RealNumber>
public class RealAbsoluteValue
extends Object
implements org.zfcj.math.set.Function<RealNumber,RealNumber>
A
Function
that calculates the absolute value of a RealNumber
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionapply
(RealNumber number) Applies the function to the given input element x and returns its corresponding output elementstatic RealNumber
calculate
(RealNumber number) Calculates theRealNumber
that is the absolute value of the givenRealNumber
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.zfcj.math.set.Function
aRb
-
Constructor Details
-
RealAbsoluteValue
public RealAbsoluteValue()
-
-
Method Details
-
apply
Description copied from interface:org.zfcj.math.set.Function
Applies the function to the given input element x and returns its corresponding output element- Specified by:
apply
in interfaceorg.zfcj.math.set.Function<RealNumber,
RealNumber>
-
calculate
Calculates theRealNumber
that is the absolute value of the givenRealNumber
- Parameters:
number
- the number- Returns:
- the number's absolute value
-