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