public class MoneyPerTime extends DoubleScalar.Rel<MoneyPerTimeUnit> implements Relative
Copyright (c) 2013-2015 Delft University of Technology, PO Box 5, 2600 AA, Delft, the Netherlands. All rights reserved.
BSD-style license. See DJUNITS License.
$LastChangedDate: 2015-10-07 11:49:36 +0200 (Wed, 07 Oct 2015) $, @version $Revision: 92 $, by $Author: averbraeck $,
initial version Sep 5, 2015
DoubleScalar.Abs<U extends Unit<U>>, DoubleScalar.Rel<U extends Unit<U>>si| Constructor and Description |
|---|
MoneyPerTime(double value,
MoneyPerTimeUnit unit)
Construct MoneyPerTime scalar.
|
MoneyPerTime(DoubleScalar.Rel<MoneyPerTimeUnit> value)
Construct MoneyPerTime scalar.
|
| Modifier and Type | Method and Description |
|---|---|
MoneyPerTime |
abs()
Set the value(s) to their absolute value.
|
MoneyPerTime |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
MoneyPerTime |
asin()
Set the value(s) to the arc sine of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
MoneyPerTime |
atan()
Set the value(s) to the arc tangent of the value(s); the resulting angle is in the range -pi/2 through pi/2.
|
MoneyPerTime |
cbrt()
Set the value(s) to the(ir) cube root.
|
MoneyPerTime |
ceil()
Set the value(s) to the smallest (closest to negative infinity) value(s) that are greater than or equal to the argument
and equal to a mathematical integer.
|
MoneyPerTime |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
MoneyPerTime |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
MoneyPerTime |
divideBy(double divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
Money |
divideBy(Frequency v)
Calculate the division of MoneyPerTime and Frequency, which results in a Money scalar.
|
Dimensionless.Rel |
divideBy(MoneyPerTime v)
Calculate the division of MoneyPerTime and MoneyPerTime, which results in a Dimensionless scalar.
|
MoneyPerTime |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
MoneyPerTime |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
MoneyPerTime |
floor()
Set the value(s) to the largest (closest to positive infinity) value(s) that are less than or equal to the argument and
equal to a mathematical integer.
|
static MoneyPerTime |
interpolate(MoneyPerTime zero,
MoneyPerTime one,
double ratio)
Interpolate between two values.
|
MoneyPerTime |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
MoneyPerTime |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
MoneyPerTime |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
MoneyPerTime |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
MoneyPerTime |
minus(MoneyPerTime v)
Relative scalar minus Relative scalar = Relative scalar.
|
MoneyPerTime |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
Money |
multiplyBy(Time.Rel v)
Calculate the multiplication of MoneyPerTime and Time, which results in a Money scalar.
|
MoneyPerTime |
plus(MoneyPerTime v)
Relative scalar plus Relative scalar = Relative scalar.
|
MoneyPerTime |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
MoneyPerTime |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
MoneyPerTime |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
MoneyPerTime |
signum()
Set the value(s) to the signum function of the value(s); zero if the argument is zero, 1.0 if the argument is greater
than zero, -1.0 if the argument is less than zero.
|
MoneyPerTime |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
MoneyPerTime |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
MoneyPerTime |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
MoneyPerTime |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
MoneyPerTime |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
MoneyPerTime |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
MoneyPerTime |
toRadians()
Set the value(s) to approximately equivalent angle(s) measured in radians.
|
compareTo, eq, ge, getSI, gt, le, lt, minus, ne, plusdivide, divide, doubleValue, equals, floatValue, getInUnit, getInUnit, hashCode, interpolate, interpolate, intValue, longValue, minus, minus, minus, multiply, multiply, plus, plus, plus, toString, toString, toString, toStringexpressAsSIUnit, expressAsSpecifiedUnit, getUnit, isAbsolute, isRelativebyteValue, shortValuepublic MoneyPerTime(double value,
MoneyPerTimeUnit unit)
value - double valueunit - unit for the double valuepublic MoneyPerTime(DoubleScalar.Rel<MoneyPerTimeUnit> value)
value - Scalar from which to construct this instancepublic static MoneyPerTime interpolate(MoneyPerTime zero, MoneyPerTime one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic final MoneyPerTime abs()
abs in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>abs in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime acos()
acos in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>acos in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime asin()
asin in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>asin in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime atan()
atan in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>atan in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime cbrt()
cbrt in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>cbrt in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime ceil()
ceil in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>ceil in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime cos()
cos in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>cos in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime cosh()
cosh in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>cosh in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime exp()
exp in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>exp in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime expm1()
expm1 in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>expm1 in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime floor()
floor in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>floor in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime log()
log in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>log in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime log10()
log10 in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>log10 in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime log1p()
log1p in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>log1p in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime rint()
rint in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>rint in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime round()
round in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>round in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime signum()
signum in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>signum in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime sin()
sin in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>sin in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime sinh()
sinh in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>sinh in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime sqrt()
sqrt in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>sqrt in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime tan()
tan in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>tan in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime tanh()
tanh in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>tanh in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime inv()
inv in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>inv in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime toDegrees()
toDegrees in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>toDegrees in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime toRadians()
toRadians in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>toRadians in class DoubleScalar.Rel<MoneyPerTimeUnit>public final MoneyPerTime pow(double x)
pow in interface MathFunctions<DoubleScalar<MoneyPerTimeUnit>>pow in class DoubleScalar.Rel<MoneyPerTimeUnit>x - double; the value to use as the powerpublic final MoneyPerTime multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<DoubleScalar<MoneyPerTimeUnit>>multiplyBy in class DoubleScalar.Rel<MoneyPerTimeUnit>factor - double; the multiplierpublic final MoneyPerTime divideBy(double divisor)
divideBy in interface DoubleMathFunctions<DoubleScalar<MoneyPerTimeUnit>>divideBy in class DoubleScalar.Rel<MoneyPerTimeUnit>divisor - double; the divisorpublic final MoneyPerTime plus(MoneyPerTime v)
v - the value to addpublic final MoneyPerTime minus(MoneyPerTime v)
v - the value to subtractpublic final Dimensionless.Rel divideBy(MoneyPerTime v)
v - MoneyPerTime scalarpublic final Money multiplyBy(Time.Rel v)
v - MoneyPerTime scalarCopyright © 2015 Delft University of Technology. All rights reserved.