visad
Class LogCoordinateSystem
- java.lang.Object
-
- visad.CoordinateSystem
-
- visad.LogCoordinateSystem
-
- All Implemented Interfaces:
- java.io.Serializable
public class LogCoordinateSystem extends CoordinateSystem
A CoordinateSystem to transform between values and their logarithms. The logarithm is the reference.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor and Description LogCoordinateSystem(RealTupleType reference)Construct a coordinate system with logarithmical reference of base 10.LogCoordinateSystem(RealTupleType reference, double base)Construct a coordinate system with logarithmical reference specified
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description booleanequals(java.lang.Object cs)See if the Object in question is equal to this LogCoordinateSystemdouble[][]fromReference(double[][] logValues)Convert logrithmic values to values.doublegetBase()Get the base used in this LogCoordinateSystem.double[][]toReference(double[][] values)Convert values to logarithmic values.-
Methods inherited from class visad.CoordinateSystem
canConvert, fromReference, fromReference, fromReference, getCoordinateSystemUnits, getDimension, getReference, getReferenceUnits, toReference, toReference, toReference, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinates, transformCoordinatesFreeUnits, transformCoordinatesFreeUnits
-
-
-
-
Constructor Detail
-
LogCoordinateSystem
public LogCoordinateSystem(RealTupleType reference) throws VisADException
Construct a coordinate system with logarithmical reference of base 10.- Parameters:
reference- MathType of values- Throws:
VisADException- some VisAD error
-
LogCoordinateSystem
public LogCoordinateSystem(RealTupleType reference, double base) throws VisADException
Construct a coordinate system with logarithmical reference specified- Parameters:
reference- MathType of valuesbase- logrithmic base- Throws:
VisADException- negative or zero base specified
-
-
Method Detail
-
toReference
public double[][] toReference(double[][] values) throws VisADExceptionConvert values to logarithmic values.- Specified by:
toReferencein classCoordinateSystem- Parameters:
values- array of values- Returns:
- array of logarithms of values
- Throws:
VisADException- values dimension not the same as CS dimension
-
fromReference
public double[][] fromReference(double[][] logValues) throws VisADExceptionConvert logrithmic values to values.- Specified by:
fromReferencein classCoordinateSystem- Parameters:
logValues- array of logrithmic values- Returns:
- array of values
- Throws:
VisADException- logValues dimension not the same as CS dimension
-
getBase
public double getBase()
Get the base used in this LogCoordinateSystem.
-
equals
public boolean equals(java.lang.Object cs)
See if the Object in question is equal to this LogCoordinateSystem- Specified by:
equalsin classCoordinateSystem- Parameters:
cs- Object in question- Returns:
- true if cs's reference tuples and base is equal to this's
-
-
DMelt 3.0 © DataMelt by jWork.ORG