|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectAbstractCollection<E>
AbstractList<E>
DefaultDomain1D<T>
DefaultPiecewiseTransform1D<T>
public class DefaultPiecewiseTransform1D<T extends DefaultPiecewiseTransform1DElement>
Convenience implementation of the PiecewiseTransform1D
interface which subclass the DefaultDomain1D
class in order to provide a suitable framework to handle a list of PiecewiseTransform1DElement
s.
modules/library/render (gt-render.jar)
Field Summary |
---|
Fields inherited from class AbstractList |
---|
modCount |
Constructor Summary | |
---|---|
DefaultPiecewiseTransform1D(T[] domainElements)
|
|
DefaultPiecewiseTransform1D(T[] domainElements,
double defaultValue)
|
Method Summary | |
---|---|
Matrix |
derivative(DirectPosition point)
Gets the derivative of this transform at a point. |
double |
derivative(double value)
Gets the derivative of this function at a value. |
boolean |
equals(Object object)
Compares the specified object with this domain element list for equality. |
double |
getDefaultValue()
The default value which will be returned when asked to transform a value outside the valid domain elements. |
protected Class<?> |
getEquivalenceClass()
|
int |
getSourceDimensions()
Gets the dimension of input points, which is 1. |
int |
getTargetDimensions()
Gets the dimension of output points, which is 1. |
boolean |
hasDefaultValue()
Indicates whether or not this PiecewiseTransform1D has a default value which
will be returned when asked to transform a value outside the valid domain elements. |
int |
hashCode()
|
MathTransform1D |
inverse()
|
boolean |
isIdentity()
|
String |
toWKT()
|
DirectPosition |
transform(DirectPosition ptSrc,
DirectPosition ptDst)
|
double |
transform(double value)
|
void |
transform(double[] srcPts,
int srcOff,
double[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values. |
void |
transform(double[] srcPts,
int srcOff,
float[] dstPts,
int dstOff,
int numPts)
Transforms a list of coordinate point ordinal values. |
void |
transform(float[] 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 DefaultDomain1D |
---|
findDomainElement, get, getApproximateDomainRange, getMain, getMinimums, getName, hasGaps, size, toArray |
Methods inherited from class AbstractList |
---|
add, add, addAll, clear, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList |
Methods inherited from class AbstractCollection |
---|
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toString |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface Domain1D |
---|
findDomainElement, getApproximateDomainRange, getName, hasGaps |
Methods inherited from interface List |
---|
add, add, addAll, addAll, clear, contains, containsAll, get, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray |
Constructor Detail |
---|
public DefaultPiecewiseTransform1D(T[] domainElements, double defaultValue)
public DefaultPiecewiseTransform1D(T[] domainElements)
Method Detail |
---|
public double transform(double value) throws TransformException
transform
in interface MathTransform1D
TransformException
public Matrix derivative(DirectPosition point) throws TransformException
derivative
in interface MathTransform
TransformException
public double derivative(double value) throws TransformException
derivative
in interface MathTransform1D
value
- The value where to evaluate the derivative.
TransformException
- if the derivative can't be evaluated at the specified point.public final int getSourceDimensions()
getSourceDimensions
in interface MathTransform
public final int getTargetDimensions()
getTargetDimensions
in interface MathTransform
public MathTransform1D inverse() throws NoninvertibleTransformException
inverse
in interface MathTransform
inverse
in interface MathTransform1D
NoninvertibleTransformException
public boolean isIdentity()
isIdentity
in interface MathTransform
public String toWKT() throws UnsupportedOperationException
toWKT
in interface MathTransform
UnsupportedOperationException
public DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst) throws MismatchedDimensionException, TransformException
transform
in interface MathTransform
MismatchedDimensionException
TransformException
public void transform(double[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws TransformException
transform
in interface MathTransform
TransformException
public void transform(float[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException
transform
in interface MathTransform
TransformException
public void transform(float[] srcPts, int srcOff, double[] dstPts, int dstOff, int numPts) throws TransformException
transform
in interface MathTransform
TransformException
public void transform(double[] srcPts, int srcOff, float[] dstPts, int dstOff, int numPts) throws TransformException
transform
in interface MathTransform
TransformException
public boolean hasDefaultValue()
PiecewiseTransform1D
PiecewiseTransform1D
has a default value which
will be returned when asked to transform a value outside the valid domain elements.
hasDefaultValue
in interface PiecewiseTransform1D<T extends DefaultPiecewiseTransform1DElement>
boolean
to indicate whether or not this PiecewiseTransform1D
has a default value.public double getDefaultValue()
PiecewiseTransform1D
In case PiecewiseTransform1D.hasDefaultValue()
return false
this value has no meaning.
getDefaultValue
in interface PiecewiseTransform1D<T extends DefaultPiecewiseTransform1DElement>
public int hashCode()
hashCode
in interface Collection<T extends DefaultPiecewiseTransform1DElement>
hashCode
in interface List<T extends DefaultPiecewiseTransform1DElement>
hashCode
in class DefaultDomain1D<T extends DefaultPiecewiseTransform1DElement>
public boolean equals(Object object)
DefaultDomain1D
DefaultDomain1D
class, then
the test check for the equality of the single elements.
equals
in interface Collection<T extends DefaultPiecewiseTransform1DElement>
equals
in interface List<T extends DefaultPiecewiseTransform1DElement>
equals
in class DefaultDomain1D<T extends DefaultPiecewiseTransform1DElement>
protected Class<?> getEquivalenceClass()
getEquivalenceClass
in class DefaultDomain1D<T extends DefaultPiecewiseTransform1DElement>
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |