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 booleanprotected doubleprotected doubleFields inherited from class org.vast.unit.UnitFunction
printSymbol, scaleFactor -
Constructor Summary
ConstructorsConstructorDescriptionUnitFunctionLog(double logBase) UnitFunctionLog(double logBase, boolean negate) -
Method Summary
Modifier and TypeMethodDescriptionbooleandoublefromProperUnit(double value) inthashCode()doubletoProperUnit(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:
toProperUnitin classUnitFunction
-
fromProperUnit
public double fromProperUnit(double value) - Specified by:
fromProperUnitin classUnitFunction
-
equals
- Specified by:
equalsin classUnitFunction
-
hashCode
public int hashCode()- Specified by:
hashCodein classUnitFunction
-
toString
- Specified by:
toStringin classUnitFunction
-