|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
ObjectDefaultDomainElement1D
DefaultPiecewiseTransform1DElement
public class DefaultPiecewiseTransform1DElement
Convenience implementation of the DefaultPiecewiseTransform1DElement
.
Constructor Summary | |
---|---|
protected |
DefaultPiecewiseTransform1DElement(CharSequence name,
NumberRange<? extends Number> valueRange)
Protected constructor for DomainElement1D s that want to build their
transform later on. |
protected |
DefaultPiecewiseTransform1DElement(CharSequence name,
NumberRange<? extends Number> valueRange,
MathTransform1D transform)
Public constructor for building a DomainElement1D which applies the
specified transformation on the values that fall into its definition
range. |
Method Summary | |
---|---|
static DefaultPiecewiseTransform1DElement |
create(CharSequence name)
Creates a pass-through DefaultPiecewiseTransform1DElement. |
static DefaultPiecewiseTransform1DElement |
create(CharSequence name,
NumberRange<? extends Number> valueRange)
Creates a pass-through DefaultPiecewiseTransform1DElement. |
static DefaultPiecewiseTransform1DElement |
create(CharSequence name,
NumberRange<? extends Number> inRange,
byte value)
Builds up a DefaultPiecewiseTransform1DElement which maps a range to a constant value. |
static DefaultPiecewiseTransform1DElement |
create(CharSequence name,
NumberRange<? extends Number> inRange,
double value)
Builds up a DefaultPiecewiseTransform1DElement which maps a range to a constant value. |
static DefaultPiecewiseTransform1DElement |
create(CharSequence name,
NumberRange<? extends Number> inRange,
int value)
Builds up a DefaultPiecewiseTransform1DElement which maps a range to a constant value. |
static DefaultPiecewiseTransform1DElement |
create(CharSequence name,
NumberRange<? extends Number> inRange,
NumberRange<? extends Number> outRange)
Constructor. |
static DefaultPiecewiseTransform1DElement |
create(String string,
NumberRange<? extends Number> range,
MathTransform1D mathTransform1D)
|
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 obj)
Implementation of Object.equals(Object) for DomainElement1D s. |
protected Class<?> |
getEquivalenceClass()
|
int |
getSourceDimensions()
|
int |
getTargetDimensions()
|
protected MathTransform1D |
getTransform()
Getter for the underlying MathTransform1D . |
int |
hashCode()
Returns a hash value for this domain element. |
MathTransform1D |
inverse()
|
boolean |
isIdentity()
|
protected void |
setInverse(MathTransform1D mathTransform)
|
protected void |
setTransform(MathTransform1D transform)
|
String |
toString()
|
String |
toWKT()
Returns a Well Known Text (WKT) for this object. |
DirectPosition |
transform(DirectPosition ptSrc,
DirectPosition ptDst)
Transforms the specified ptSrc and stores the result in
ptDst . |
double |
transform(double value)
Transforms the specified value. |
void |
transform(double[] arg0,
int arg1,
double[] arg2,
int arg3,
int arg4)
|
void |
transform(double[] arg0,
int arg1,
float[] arg2,
int arg3,
int arg4)
|
void |
transform(float[] arg0,
int arg1,
double[] arg2,
int arg3,
int arg4)
|
void |
transform(float[] arg0,
int arg1,
float[] arg2,
int arg3,
int arg4)
|
Methods inherited from class DefaultDomainElement1D |
---|
compareTo, contains, contains, contains, getInputMaximum, getInputMinimum, getName, getRange, isInputMaximumInfinite, isInputMaximumNaN, isInputMinimumInfinite, isInputMinimumNaN |
Methods inherited from class Object |
---|
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Methods inherited from interface DomainElement1D |
---|
contains, contains, contains, getName, getRange |
Methods inherited from interface Comparable |
---|
compareTo |
Constructor Detail |
---|
protected DefaultPiecewiseTransform1DElement(CharSequence name, NumberRange<? extends Number> valueRange) throws IllegalArgumentException
DomainElement1D
s that want to build their
transform later on.
name
- for this DomainElement1D
.valueRange
- for this DomainElement1D
.
IllegalArgumentException
protected DefaultPiecewiseTransform1DElement(CharSequence name, NumberRange<? extends Number> valueRange, MathTransform1D transform) throws IllegalArgumentException
DomainElement1D
which applies the
specified transformation on the values that fall into its definition
range.
name
- for this DomainElement1D
.valueRange
- for this DomainElement1D
.transform
- for this DomainElement1D
.
IllegalArgumentException
Method Detail |
---|
public static DefaultPiecewiseTransform1DElement create(CharSequence name, NumberRange<? extends Number> inRange, double value)
DefaultPiecewiseTransform1DElement
which maps a range to a constant value.
name
- for this DomainElement1D
inRange
- for this DomainElement1D
outVal
- for this DefaultLinearPiecewiseTransform1DElement
IllegalArgumentException
- in case the input values are illegal.public static DefaultPiecewiseTransform1DElement create(CharSequence name, NumberRange<? extends Number> inRange, byte value)
name
- for this DomainElement1D
inRange
- for this DomainElement1D
outVal
- for this DefaultLinearPiecewiseTransform1DElement
IllegalArgumentException
- in case the input values are illegal.public static DefaultPiecewiseTransform1DElement create(CharSequence name, NumberRange<? extends Number> inRange, int value)
name
- for this DomainElement1D
inRange
- for this DomainElement1D
outVal
- for this DefaultLinearPiecewiseTransform1DElement
IllegalArgumentException
- in case the input values are illegal.public static DefaultPiecewiseTransform1DElement create(CharSequence name, NumberRange<? extends Number> inRange, NumberRange<? extends Number> outRange)
name
- for this DefaultLinearPiecewiseTransform1DElement
.inRange
- for this DefaultLinearPiecewiseTransform1DElement
.outRange
- for this DefaultLinearPiecewiseTransform1DElement
.public static DefaultPiecewiseTransform1DElement create(CharSequence name) throws IllegalArgumentException
name
- for this DomainElement1D
.
IllegalArgumentException
public static DefaultPiecewiseTransform1DElement create(CharSequence name, NumberRange<? extends Number> valueRange) throws IllegalArgumentException
name
- for this DomainElement1D
.valueRange
- for this DomainElement1D
.
IllegalArgumentException
public String toWKT() throws UnsupportedOperationException
toWKT
in interface MathTransform
UnsupportedOperationException
- If this object can't be formatted as WKT.
XXX Not yet implemented.protected MathTransform1D getTransform()
MathTransform1D
.
MathTransform1D
.public double transform(double value) throws TransformException
transform
in interface MathTransform1D
value
- The value to transform.
TransformException
- if the value can't be transformed.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 DirectPosition transform(DirectPosition ptSrc, DirectPosition ptDst) throws TransformException
ptSrc
and stores the result in
ptDst
.
transform
in interface MathTransform
TransformException
public Matrix derivative(DirectPosition point) throws TransformException
derivative
in interface MathTransform
TransformException
public void transform(double[] arg0, int arg1, double[] arg2, int arg3, int arg4) throws TransformException
transform
in interface MathTransform
TransformException
public void transform(float[] arg0, int arg1, float[] arg2, int arg3, int arg4) throws TransformException
transform
in interface MathTransform
TransformException
public void transform(float[] arg0, int arg1, double[] arg2, int arg3, int arg4) throws TransformException
TransformException
public void transform(double[] arg0, int arg1, float[] arg2, int arg3, int arg4) throws TransformException
TransformException
public int getSourceDimensions()
getSourceDimensions
in interface MathTransform
public 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
protected void setInverse(MathTransform1D mathTransform)
mathTransform
- protected void setTransform(MathTransform1D transform)
transform
- public boolean equals(Object obj)
DefaultDomainElement1D
Object.equals(Object)
for DomainElement1D
s.
Two DefaultDomainElement1D
s are considered to be equal if they have
the same inputr range and the same name.
equals
in interface DomainElement1D
equals
in class DefaultDomainElement1D
obj
- the reference object with which to compare.
true
if this object is the same as the obj
argument; false
otherwise.Object.equals(Object)
public String toString()
toString
in class DefaultDomainElement1D
protected Class<?> getEquivalenceClass()
getEquivalenceClass
in class DefaultDomainElement1D
public int hashCode()
DefaultDomainElement1D
hashCode
in class DefaultDomainElement1D
public static DefaultPiecewiseTransform1DElement create(String string, NumberRange<? extends Number> range, MathTransform1D mathTransform1D)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |