public class Frequency extends DoubleScalar.Rel<FrequencyUnit> 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-04 20:45:14 +0200 (Sun, 04 Oct 2015) $, @version $Revision: 85 $, by $Author: averbraeck $, initial
version Sep 5, 2015
DoubleScalar.Abs<U extends Unit<U>>, DoubleScalar.Rel<U extends Unit<U>>si| Constructor and Description |
|---|
Frequency(double value,
FrequencyUnit unit)
Construct Frequency scalar.
|
Frequency(DoubleScalar.Rel<FrequencyUnit> value)
Construct Frequency scalar.
|
| Modifier and Type | Method and Description |
|---|---|
Frequency |
abs()
Set the value(s) to their absolute value.
|
Frequency |
acos()
Set the value(s) to the arc cosine of the value(s); the resulting angle is in the range 0.0 through pi.
|
Frequency |
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.
|
Frequency |
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.
|
Frequency |
cbrt()
Set the value(s) to the(ir) cube root.
|
Frequency |
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.
|
Frequency |
cos()
Set the value(s) to the trigonometric cosine of the value(s).
|
Frequency |
cosh()
Set the value(s) to the hyperbolic cosine of the value(s).
|
Frequency |
divideBy(double divisor)
Scale the value(s) by the inverse of a factor; i.e.
|
Dimensionless.Rel |
divideBy(Frequency v)
Calculate the division of Frequency and Frequency, which results in a Dimensionless scalar.
|
Frequency |
exp()
Set the value(s) to Euler's number e raised to the power of the value(s).
|
Frequency |
expm1()
Set the value(s) to Euler's number e raised to the power of the value(s) minus 1 (e^x - 1).
|
Frequency |
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 Frequency |
interpolate(Frequency zero,
Frequency one,
double ratio)
Interpolate between two values.
|
Frequency |
inv()
Set the value(s) to the complement (1.0/x) of the value(s).
|
Frequency |
log()
Set the value(s) to the natural logarithm (base e) of the value(s).
|
Frequency |
log10()
Set the value(s) to the base 10 logarithm of the value(s).
|
Frequency |
log1p()
Set the value(s) to the natural logarithm of the sum of the value(s) and 1.
|
Frequency |
minus(Frequency v)
Relative scalar minus Relative scalar = Relative scalar.
|
Frequency |
multiplyBy(double factor)
Scale the value(s) by a factor.
|
Power |
multiplyBy(Energy v)
Calculate the multiplication of Frequency and Energy, which results in a Power scalar.
|
Speed |
multiplyBy(Length.Rel v)
Calculate the multiplication of Frequency and Length, which results in a Speed scalar.
|
MoneyPerTime |
multiplyBy(Money v)
Calculate the multiplication of Frequency and Money, which results in a MoneyPerTime scalar.
|
Acceleration |
multiplyBy(Speed v)
Calculate the multiplication of Frequency and Speed, which results in a Acceleration scalar.
|
Dimensionless.Rel |
multiplyBy(Time.Rel v)
Calculate the multiplication of Frequency and Time, which results in a Dimensionless scalar.
|
Frequency |
plus(Frequency v)
Relative scalar plus Relative scalar = Relative scalar.
|
Frequency |
pow(double x)
Set the value(s) to the value(s) raised to the power of the argument.
|
Frequency |
rint()
Set the value(s) to the value(s) that are closest in value to the argument and equal to a mathematical integer.
|
Frequency |
round()
Set the value(s) to the closest long to the argument with ties rounding up.
|
Frequency |
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.
|
Frequency |
sin()
Set the value(s) to the trigonometric sine of the value(s).
|
Frequency |
sinh()
Set the value(s) to the hyperbolic sine of the value(s).
|
Frequency |
sqrt()
Set the value(s) to the correctly rounded positive square root of the value(s).
|
Frequency |
tan()
Set the value(s) to the trigonometric tangent of the value(s).
|
Frequency |
tanh()
Set the value(s) to the hyperbolic tangent of the value(s).
|
Frequency |
toDegrees()
Set the value(s) to approximately equivalent angle(s) measured in degrees.
|
Frequency |
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 Frequency(double value,
FrequencyUnit unit)
value - double valueunit - unit for the double valuepublic Frequency(DoubleScalar.Rel<FrequencyUnit> value)
value - Scalar from which to construct this instancepublic static Frequency interpolate(Frequency zero, Frequency one, double ratio)
zero - the low valueone - the high valueratio - the ratio between 0 and 1, inclusivepublic final Frequency abs()
abs in interface MathFunctions<DoubleScalar<FrequencyUnit>>abs in class DoubleScalar.Rel<FrequencyUnit>public final Frequency acos()
acos in interface MathFunctions<DoubleScalar<FrequencyUnit>>acos in class DoubleScalar.Rel<FrequencyUnit>public final Frequency asin()
asin in interface MathFunctions<DoubleScalar<FrequencyUnit>>asin in class DoubleScalar.Rel<FrequencyUnit>public final Frequency atan()
atan in interface MathFunctions<DoubleScalar<FrequencyUnit>>atan in class DoubleScalar.Rel<FrequencyUnit>public final Frequency cbrt()
cbrt in interface MathFunctions<DoubleScalar<FrequencyUnit>>cbrt in class DoubleScalar.Rel<FrequencyUnit>public final Frequency ceil()
ceil in interface MathFunctions<DoubleScalar<FrequencyUnit>>ceil in class DoubleScalar.Rel<FrequencyUnit>public final Frequency cos()
cos in interface MathFunctions<DoubleScalar<FrequencyUnit>>cos in class DoubleScalar.Rel<FrequencyUnit>public final Frequency cosh()
cosh in interface MathFunctions<DoubleScalar<FrequencyUnit>>cosh in class DoubleScalar.Rel<FrequencyUnit>public final Frequency exp()
exp in interface MathFunctions<DoubleScalar<FrequencyUnit>>exp in class DoubleScalar.Rel<FrequencyUnit>public final Frequency expm1()
expm1 in interface MathFunctions<DoubleScalar<FrequencyUnit>>expm1 in class DoubleScalar.Rel<FrequencyUnit>public final Frequency floor()
floor in interface MathFunctions<DoubleScalar<FrequencyUnit>>floor in class DoubleScalar.Rel<FrequencyUnit>public final Frequency log()
log in interface MathFunctions<DoubleScalar<FrequencyUnit>>log in class DoubleScalar.Rel<FrequencyUnit>public final Frequency log10()
log10 in interface MathFunctions<DoubleScalar<FrequencyUnit>>log10 in class DoubleScalar.Rel<FrequencyUnit>public final Frequency log1p()
log1p in interface MathFunctions<DoubleScalar<FrequencyUnit>>log1p in class DoubleScalar.Rel<FrequencyUnit>public final Frequency rint()
rint in interface MathFunctions<DoubleScalar<FrequencyUnit>>rint in class DoubleScalar.Rel<FrequencyUnit>public final Frequency round()
round in interface MathFunctions<DoubleScalar<FrequencyUnit>>round in class DoubleScalar.Rel<FrequencyUnit>public final Frequency signum()
signum in interface MathFunctions<DoubleScalar<FrequencyUnit>>signum in class DoubleScalar.Rel<FrequencyUnit>public final Frequency sin()
sin in interface MathFunctions<DoubleScalar<FrequencyUnit>>sin in class DoubleScalar.Rel<FrequencyUnit>public final Frequency sinh()
sinh in interface MathFunctions<DoubleScalar<FrequencyUnit>>sinh in class DoubleScalar.Rel<FrequencyUnit>public final Frequency sqrt()
sqrt in interface MathFunctions<DoubleScalar<FrequencyUnit>>sqrt in class DoubleScalar.Rel<FrequencyUnit>public final Frequency tan()
tan in interface MathFunctions<DoubleScalar<FrequencyUnit>>tan in class DoubleScalar.Rel<FrequencyUnit>public final Frequency tanh()
tanh in interface MathFunctions<DoubleScalar<FrequencyUnit>>tanh in class DoubleScalar.Rel<FrequencyUnit>public final Frequency inv()
inv in interface MathFunctions<DoubleScalar<FrequencyUnit>>inv in class DoubleScalar.Rel<FrequencyUnit>public final Frequency toDegrees()
toDegrees in interface MathFunctions<DoubleScalar<FrequencyUnit>>toDegrees in class DoubleScalar.Rel<FrequencyUnit>public final Frequency toRadians()
toRadians in interface MathFunctions<DoubleScalar<FrequencyUnit>>toRadians in class DoubleScalar.Rel<FrequencyUnit>public final Frequency pow(double x)
pow in interface MathFunctions<DoubleScalar<FrequencyUnit>>pow in class DoubleScalar.Rel<FrequencyUnit>x - double; the value to use as the powerpublic final Frequency multiplyBy(double factor)
multiplyBy in interface DoubleMathFunctions<DoubleScalar<FrequencyUnit>>multiplyBy in class DoubleScalar.Rel<FrequencyUnit>factor - double; the multiplierpublic final Frequency divideBy(double divisor)
divideBy in interface DoubleMathFunctions<DoubleScalar<FrequencyUnit>>divideBy in class DoubleScalar.Rel<FrequencyUnit>divisor - double; the divisorpublic final Frequency plus(Frequency v)
v - the value to addpublic final Frequency minus(Frequency v)
v - the value to subtractpublic final Dimensionless.Rel divideBy(Frequency v)
v - Frequency scalarpublic final Dimensionless.Rel multiplyBy(Time.Rel v)
v - Frequency scalarpublic final Speed multiplyBy(Length.Rel v)
v - Frequency scalarpublic final Acceleration multiplyBy(Speed v)
v - Frequency scalarpublic final Power multiplyBy(Energy v)
v - Frequency scalarpublic final MoneyPerTime multiplyBy(Money v)
v - Frequency scalarCopyright © 2015 Delft University of Technology. All rights reserved.