|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
ObjectFormattable
AbstractMathTransform
LogarithmicTransform1D
public class LogarithmicTransform1D
A one dimensional, logarithmic transform. Input values x are converted into output values y using the following equation:
y = offset + logbase(x) = offset + ln(x)/ln(base)
This transform is the inverse ofExponentialTransform1D.
ExponentialTransform1D,
LinearTransform1D,
Serialized Form| Nested Class Summary | |
|---|---|
static class |
LogarithmicTransform1D.Provider
The provider for the LogarithmicTransform1D. |
| Nested classes/interfaces inherited from class AbstractMathTransform |
|---|
AbstractMathTransform.Inverse |
| Field Summary | |
|---|---|
double |
base
The base of the logarithm. |
double |
offset
The offset to add to the logarithm. |
| Fields inherited from class Formattable |
|---|
SINGLE_LINE |
| Constructor Summary | |
|---|---|
protected |
LogarithmicTransform1D(double base,
double offset)
Constructs a new logarithmic transform. |
| Method Summary | |
|---|---|
static MathTransform1D |
create(double base,
double offset)
Constructs a new logarithmic transform. |
double |
derivative(double value)
Gets the derivative of this function at a value. |
boolean |
equals(Object object)
Compares the specified object with this math transform for equality. |
ParameterDescriptorGroup |
getParameterDescriptors()
Returns the parameter descriptors for this math transform. |
ParameterValueGroup |
getParameterValues()
Returns the parameter values for this math transform. |
int |
getSourceDimensions()
Gets the dimension of input points, which is 1. |
int |
getTargetDimensions()
Gets the dimension of output points, which is 1. |
int |
hashCode()
Returns a hash value for this transform. |
MathTransform1D |
inverse()
Creates the inverse transform of this object. |
double |
transform(double value)
Transforms the specified value. |
void |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values. |
void |
transform(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, rollLongitude, transform, transform, transform, transform |
| Methods inherited from class Formattable |
|---|
cleanupThreadLocals, toString, toWKT, toWKT, toWKT, toWKT |
| Methods inherited from class Object |
|---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Methods inherited from interface MathTransform |
|---|
derivative, isIdentity, toWKT, transform, transform, transform |
| Field Detail |
|---|
public final double base
public final double offset
| Constructor Detail |
|---|
protected LogarithmicTransform1D(double base,
double offset)
base - The base of the logarithm (typically 10).offset - The offset to add to the logarithm.| Method Detail |
|---|
public static MathTransform1D create(double base,
double offset)
base - The base of the logarithm (typically 10).offset - The offset to add to the logarithm.
public ParameterDescriptorGroup getParameterDescriptors()
getParameterDescriptors in class AbstractMathTransformnull.OperationMethod.getParameters()public ParameterValueGroup getParameterValues()
getParameterValues in class AbstractMathTransformOperation.getParameterValues()public int getSourceDimensions()
getSourceDimensions in interface MathTransformgetSourceDimensions in class AbstractMathTransformpublic int getTargetDimensions()
getTargetDimensions in interface MathTransformgetTargetDimensions in class AbstractMathTransformpublic MathTransform1D inverse()
inverse in interface MathTransforminverse in interface MathTransform1Dinverse in class AbstractMathTransformpublic double derivative(double value)
derivative in interface MathTransform1Dvalue - The value where to evaluate the derivative.
public double transform(double value)
transform in interface MathTransform1Dvalue - The value to transform.
public void transform(float[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
transform in interface MathTransformtransform in class AbstractMathTransformsrcPts - 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 than srcPts.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.
public void transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
transform in interface MathTransformsrcPts - 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 than srcPts.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.public int hashCode()
hashCode in class AbstractMathTransformpublic boolean equals(Object object)
equals in class AbstractMathTransformobject - The object to compare with this transform.
true if the given object is a transform of the same class
and if, given identical source position, the
transformed
position would be the equals.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||