Class NumUnaryOperations
java.lang.Object
trade.invision.indicators.indicators.operation.unary.NumUnaryOperations
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabsoluteValue(Indicator<Num> operand) binaryLogarithm(Indicator<Num> operand) Creates aNumIndicatorthat invokes theNum.binaryLogarithm()unary operation on the givenoperand.commonLogarithm(Indicator<Num> operand) Creates aNumIndicatorthat invokes theNum.commonLogarithm()unary operation on the givenoperand.exponential(Indicator<Num> operand) fractionalPart(Indicator<Num> operand) hyperbolicCosine(Indicator<Num> operand) Creates aNumIndicatorthat invokes theNum.hyperbolicCosine()unary operation on the givenoperand.hyperbolicSine(Indicator<Num> operand) hyperbolicTangent(Indicator<Num> operand) Creates aNumIndicatorthat invokes theNum.hyperbolicTangent()unary operation on the givenoperand.integerPart(Indicator<Num> operand) inverseCosine(Indicator<Num> operand) inverseHyperbolicCosine(Indicator<Num> operand) Creates aNumIndicatorthat invokes theNum.inverseHyperbolicCosine()unary operation on the givenoperand.inverseHyperbolicSine(Indicator<Num> operand) Creates aNumIndicatorthat invokes theNum.inverseHyperbolicSine()unary operation on the givenoperand.inverseHyperbolicTangent(Indicator<Num> operand) Creates aNumIndicatorthat invokes theNum.inverseHyperbolicTangent()unary operation on the givenoperand.inverseSine(Indicator<Num> operand) inverseTangent(Indicator<Num> operand) isNegative(Indicator<Num> input) Creates aBooleanIndicatorthat performs theNum.isNegative()unary comparison using the giveninput.isNegativeOrZero(Indicator<Num> input) Creates aBooleanIndicatorthat performs theNum.isNegativeOrZero(Num)unary comparison using the giveninput.isPositive(Indicator<Num> input) Creates aBooleanIndicatorthat performs theNum.isPositive()unary comparison using the giveninput.isPositiveOrZero(Indicator<Num> input) Creates aBooleanIndicatorthat performs theNum.isPositiveOrZero(Num)unary comparison using the giveninput.Creates aBooleanIndicatorthat performs theNum.isZero(Num)unary comparison using the giveninput.naturalLogarithm(Indicator<Num> operand) Creates aNumIndicatorthat invokes theNum.naturalLogarithm()unary operation on the givenoperand.precision(Indicator<Num> operand, int significantFigures, RoundingMode roundingMode) Creates aNumIndicatorthat invokes theNum.precision(int, RoundingMode)unary operation on the givenoperand.precision(Indicator<Num> operand, MathContext mathContext) Creates aNumIndicatorthat invokes theNum.precision(MathContext)unary operation on the givenoperand.reciprocal(Indicator<Num> operand) round(Indicator<Num> operand, int scale, RoundingMode roundingMode) Creates aNumIndicatorthat invokes theNum.round(int, RoundingMode)unary operation on the givenoperand.round(Indicator<Num> operand, RoundingMode roundingMode) Creates aNumIndicatorthat invokes theNum.round(RoundingMode)unary operation on the givenoperand.squareRoot(Indicator<Num> operand)
-
Constructor Details
-
NumUnaryOperations
public NumUnaryOperations()
-
-
Method Details
-
square
-
cube
-
exponential
-
squareRoot
-
cubeRoot
-
naturalLogarithm
Creates aNumIndicatorthat invokes theNum.naturalLogarithm()unary operation on the givenoperand. -
commonLogarithm
Creates aNumIndicatorthat invokes theNum.commonLogarithm()unary operation on the givenoperand. -
binaryLogarithm
Creates aNumIndicatorthat invokes theNum.binaryLogarithm()unary operation on the givenoperand. -
absoluteValue
-
negate
-
reciprocal
-
increment
-
decrement
-
floor
-
ceil
-
degrees
-
radians
-
pi
-
e
-
sine
-
cosine
-
tangent
-
inverseSine
-
inverseCosine
-
inverseTangent
-
hyperbolicSine
-
hyperbolicCosine
Creates aNumIndicatorthat invokes theNum.hyperbolicCosine()unary operation on the givenoperand. -
hyperbolicTangent
Creates aNumIndicatorthat invokes theNum.hyperbolicTangent()unary operation on the givenoperand. -
inverseHyperbolicSine
Creates aNumIndicatorthat invokes theNum.inverseHyperbolicSine()unary operation on the givenoperand. -
inverseHyperbolicCosine
Creates aNumIndicatorthat invokes theNum.inverseHyperbolicCosine()unary operation on the givenoperand. -
inverseHyperbolicTangent
Creates aNumIndicatorthat invokes theNum.inverseHyperbolicTangent()unary operation on the givenoperand. -
integerPart
-
fractionalPart
-
round
-
round
-
round
Creates aNumIndicatorthat invokes theNum.round(RoundingMode)unary operation on the givenoperand.- Parameters:
operand- the operandroundingMode- theRoundingMode- Returns:
- the
NumIndicator - See Also:
-
round
Creates aNumIndicatorthat invokes theNum.round(int, RoundingMode)unary operation on the givenoperand.- Parameters:
operand- the operandscale- the scaleroundingMode- theRoundingMode- Returns:
- the
NumIndicator - See Also:
-
precision
-
precision
public static Indicator<Num> precision(Indicator<Num> operand, int significantFigures, RoundingMode roundingMode) Creates aNumIndicatorthat invokes theNum.precision(int, RoundingMode)unary operation on the givenoperand.- Parameters:
operand- the operandsignificantFigures- the significant figuresroundingMode- theRoundingMode- Returns:
- the
NumIndicator - See Also:
-
precision
Creates aNumIndicatorthat invokes theNum.precision(MathContext)unary operation on the givenoperand.- Parameters:
operand- the operandmathContext- theMathContext- Returns:
- the
NumIndicator - See Also:
-
signum
-
isNegative
Creates aBooleanIndicatorthat performs theNum.isNegative()unary comparison using the giveninput. -
isNegativeOrZero
Creates aBooleanIndicatorthat performs theNum.isNegativeOrZero(Num)unary comparison using the giveninput. -
isPositive
Creates aBooleanIndicatorthat performs theNum.isPositive()unary comparison using the giveninput. -
isPositiveOrZero
Creates aBooleanIndicatorthat performs theNum.isPositiveOrZero(Num)unary comparison using the giveninput. -
isZero
Creates aBooleanIndicatorthat performs theNum.isZero(Num)unary comparison using the giveninput. -
isNaN
-