public class DefaultPassthroughPiecewiseTransform1DElement extends DefaultPiecewiseTransform1DElement implements PiecewiseTransform1DElement
DefaultPassthroughPiecewiseTransform1DElement
identically maps input values to the output ones.
Such DomainElement1D can be used in cases when only No-Data have been specified, allowing us to create a convenience domain element for the other
values.Constructor and Description |
---|
DefaultPassthroughPiecewiseTransform1DElement(CharSequence name)
Protected constructor for
DomainElement1D s that want to build their transform later on. |
DefaultPassthroughPiecewiseTransform1DElement(CharSequence name,
Range valueRange)
Protected constructor for
DomainElement1D s that want to build their transform later on. |
Modifier and Type | Method and Description |
---|---|
int |
getSourceDimensions()
Returns the input transformation dimensions
|
int |
getTargetDimensions()
Returns the output transformation dimensions
|
MathTransformation |
inverse()
Returns the inverse of this
MathTransformation instance |
boolean |
isIdentity()
Defines if the transformation is an identity
|
double |
transform(double value)
Transforms the specified value.
|
Position |
transform(Position ptSrc,
Position ptDst)
Transforms the specified
ptSrc and stores the result in ptDst . |
create, create, create, create, create, create, create, equals, getEquivalenceClass, getTransform, hashCode, setInverse, setTransform
compareTo, contains, contains, contains, getInputMaximum, getInputMinimum, getName, getRange, isInputMaximumInfinite, isInputMaximumNaN, isInputMinimumInfinite, isInputMinimumNaN, toString
contains, contains, contains, equals, getName, getRange
compareTo
public DefaultPassthroughPiecewiseTransform1DElement(CharSequence name) throws IllegalArgumentException
DomainElement1D
s that want to build their transform later on.name
- for this DomainElement1D
.IllegalArgumentException
public DefaultPassthroughPiecewiseTransform1DElement(CharSequence name, Range valueRange) throws IllegalArgumentException
DomainElement1D
s that want to build their transform later on.name
- for this DomainElement1D
.valueRange
- for this DomainElement1D
.IllegalArgumentException
public double transform(double value) throws TransformationException
transform
in interface PiecewiseTransform1DElement
transform
in class DefaultPiecewiseTransform1DElement
value
- The value to transform.TransformationException
- if the value can't be transformed.public Position transform(Position ptSrc, Position ptDst) throws TransformationException
ptSrc
and stores the result in ptDst
.transform
in class DefaultPiecewiseTransform1DElement
TransformationException
public int getSourceDimensions()
DefaultPiecewiseTransform1DElement
getSourceDimensions
in class DefaultPiecewiseTransform1DElement
public int getTargetDimensions()
DefaultPiecewiseTransform1DElement
getTargetDimensions
in class DefaultPiecewiseTransform1DElement
public MathTransformation inverse() throws NoninvertibleTransformException
DefaultPiecewiseTransform1DElement
MathTransformation
instanceinverse
in class DefaultPiecewiseTransform1DElement
NoninvertibleTransformException
public boolean isIdentity()
DefaultPiecewiseTransform1DElement
isIdentity
in class DefaultPiecewiseTransform1DElement
Copyright © 2006–2018 GeoSolutions. All rights reserved.