Package org.vast.unit
Class UnitFunctionLog
java.lang.Object
org.vast.unit.UnitFunction
org.vast.unit.UnitFunctionLog
- All Implemented Interfaces:
Serializable
Implementation of the base 10 logarithm function for special units such as B, B[SPL], B[V], etc...
- Since:
- Feb 10, 2007
- See Also:
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected boolean
protected double
protected double
Fields inherited from class org.vast.unit.UnitFunction
printSymbol, scaleFactor
-
Constructor Summary
ConstructorsConstructorDescriptionUnitFunctionLog
(double logBase) UnitFunctionLog
(double logBase, boolean negate) -
Method Summary
Modifier and TypeMethodDescriptionboolean
double
fromProperUnit
(double value) int
hashCode()
double
toProperUnit
(double value) Methods inherited from class org.vast.unit.UnitFunction
createFunction, getPrintSymbol, getScaleFactor, setPrintSymbol, setScaleFactor
-
Field Details
-
eBase
protected boolean eBase -
sign
protected double sign -
logBase
protected double logBase
-
-
Constructor Details
-
UnitFunctionLog
public UnitFunctionLog() -
UnitFunctionLog
public UnitFunctionLog(double logBase) -
UnitFunctionLog
public UnitFunctionLog(double logBase, boolean negate)
-
-
Method Details
-
toProperUnit
public double toProperUnit(double value) - Specified by:
toProperUnit
in classUnitFunction
-
fromProperUnit
public double fromProperUnit(double value) - Specified by:
fromProperUnit
in classUnitFunction
-
equals
- Specified by:
equals
in classUnitFunction
-
hashCode
public int hashCode()- Specified by:
hashCode
in classUnitFunction
-
toString
- Specified by:
toString
in classUnitFunction
-