Class ExponentialTransform1D
- Object
-
- Formattable
-
- AbstractMathTransform
-
- ExponentialTransform1D
-
- All Implemented Interfaces:
Serializable,MathTransform,MathTransform1D
public class ExponentialTransform1D extends AbstractMathTransform implements MathTransform1D, Serializable
A one dimensional exponentional transform. Input values x are converted into output values y using the following equation:- Since:
- 2.0
- Author:
- Martin Desruisseaux (IRD)
- See Also:
LogarithmicTransform1D,LinearTransform1D, Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classExponentialTransform1D.ProviderThe provider for theExponentialTransform1D.-
Nested classes/interfaces inherited from class AbstractMathTransform
AbstractMathTransform.Inverse
-
-
Field Summary
Fields Modifier and Type Field Description doublebaseThe base to be raised to a power.doublescaleThe scale value to be multiplied.-
Fields inherited from class Formattable
SINGLE_LINE
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedExponentialTransform1D(double base, double scale)Constructs a new exponentional transform.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static MathTransform1Dcreate(double base, double scale)Constructs a new exponentional transform.doublederivative(double value)Gets the derivative of this function at a value.booleanequals(Object object)Compares the specified object with this math transform for equality.ParameterDescriptorGroupgetParameterDescriptors()Returns the parameter descriptors for this math transform.ParameterValueGroupgetParameterValues()Returns the parameter values for this math transform.intgetSourceDimensions()Gets the dimension of input points, which is 1.intgetTargetDimensions()Gets the dimension of output points, which is 1.inthashCode()Returns a hash value for this transform.MathTransform1Dinverse()Creates the inverse transform of this object.doubletransform(double value)Transforms the specified value.voidtransform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)Transforms a list of coordinate point ordinal values.voidtransform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)Transforms a list of coordinate point ordinal values.-
Methods inherited from class AbstractMathTransform
createTransformedShape, derivative, derivative, ensureNonNull, formatWKT, getName, isIdentity, needCopy, normalizeAngle, rollLongitude, transform, transform, transform, transform
-
Methods inherited from class Formattable
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT
-
Methods inherited from interface MathTransform
derivative, isIdentity, toWKT, transform, transform, transform
-
-
-
-
Constructor Detail
-
ExponentialTransform1D
protected ExponentialTransform1D(double base, double scale)Constructs a new exponentional transform. This constructor is provided for subclasses only. Instances should be created using the factory method, which may returns optimized implementations for some particular argument values.- Parameters:
base- The base to be raised to a power.scale- The scale value to be multiplied.
-
-
Method Detail
-
create
public static MathTransform1D create(double base, double scale)
Constructs a new exponentional transform.- Parameters:
base- The base to be raised to a power.scale- The scale value to be multiplied.- Returns:
- The math transform.
-
getParameterDescriptors
public ParameterDescriptorGroup getParameterDescriptors()
Returns the parameter descriptors for this math transform.- Overrides:
getParameterDescriptorsin classAbstractMathTransform- Returns:
- The parameter descriptors for this math transform, or
null. - See Also:
OperationMethod.getParameters()
-
getParameterValues
public ParameterValueGroup getParameterValues()
Returns the parameter values for this math transform.- Overrides:
getParameterValuesin classAbstractMathTransform- Returns:
- A copy of the parameter values for this math transform.
- See Also:
Operation.getParameterValues()
-
getSourceDimensions
public int getSourceDimensions()
Gets the dimension of input points, which is 1.- Specified by:
getSourceDimensionsin interfaceMathTransform- Specified by:
getSourceDimensionsin classAbstractMathTransform- Returns:
- The dimension of input points.
-
getTargetDimensions
public int getTargetDimensions()
Gets the dimension of output points, which is 1.- Specified by:
getTargetDimensionsin interfaceMathTransform- Specified by:
getTargetDimensionsin classAbstractMathTransform- Returns:
- The dimension of output points.
-
inverse
public MathTransform1D inverse()
Creates the inverse transform of this object.- Specified by:
inversein interfaceMathTransform- Specified by:
inversein interfaceMathTransform1D- Overrides:
inversein classAbstractMathTransform- Returns:
- The inverse transform.
-
derivative
public double derivative(double value)
Gets the derivative of this function at a value.- Specified by:
derivativein interfaceMathTransform1D- Parameters:
value- The value where to evaluate the derivative.- Returns:
- The derivative at the specified point.
-
transform
public double transform(double value)
Transforms the specified value.- Specified by:
transformin interfaceMathTransform1D- Parameters:
value- The value to transform.- Returns:
- the transformed value.
-
transform
public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts)Transforms a list of coordinate point ordinal values.- Specified by:
transformin interfaceMathTransform- Overrides:
transformin classAbstractMathTransform- Parameters:
srcPts- the array containing the source point coordinates.srcOff- the offset to the first point to be transformed in the source array.dstPts- the array into which the transformed point coordinates are returned. May be the same thansrcPts.dstOff- the offset to the location of the first transformed point that is stored in the destination array.numPts- the number of point objects to be transformed.
-
transform
public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts)Transforms a list of coordinate point ordinal values.- Specified by:
transformin interfaceMathTransform- Parameters:
srcPts- the array containing the source point coordinates.srcOff- the offset to the first point to be transformed in the source array.dstPts- the array into which the transformed point coordinates are returned. May be the same thansrcPts.dstOff- the offset to the location of the first transformed point that is stored in the destination array.numPts- the number of point objects to be transformed.
-
hashCode
public int hashCode()
Returns a hash value for this transform. This value need not remain consistent between different implementations of the same class.- Overrides:
hashCodein classAbstractMathTransform
-
equals
public boolean equals(Object object)
Compares the specified object with this math transform for equality.- Overrides:
equalsin classAbstractMathTransform- Parameters:
object- The object to compare with this transform.- Returns:
trueif the given object is a transform of the same class and if, given identical source position, the transformed position would be the equals.
-
-