Package skyview.geometry
Class Converter
java.lang.Object
skyview.geometry.Transformer
skyview.geometry.Converter
- All Implemented Interfaces:
Serializable,Component
- Direct Known Subclasses:
WCS
A converter applies a succession of transformations on the data
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadd(Transformer trans) Add a component to the transformationvoidcheck()See if there are any optimizations we can do.voiddebug(boolean flag) Get the description of this component.intGet the dimensionality of the input vectors.getName()Get the name of this component.intGet the dimensionality of the output vectors.inverse()Return the inverse of this series of transformations.booleanIs this the inverse of another transformation.voidvoidtransform(double[] in, double[] out) Transform a vectorMethods inherited from class skyview.geometry.Transformer
transform, transform
-
Constructor Details
-
Converter
public Converter()
-
-
Method Details
-
getName
Description copied from interface:ComponentGet the name of this component. -
getDescription
Description copied from interface:ComponentGet the description of this component.- Specified by:
getDescriptionin interfaceComponent
-
printElements
public void printElements() -
debug
public void debug(boolean flag) -
getInputDimension
public int getInputDimension()Get the dimensionality of the input vectors.- Specified by:
getInputDimensionin classTransformer
-
getOutputDimension
public int getOutputDimension()Get the dimensionality of the output vectors.- Specified by:
getOutputDimensionin classTransformer
-
add
Add a component to the transformation- Throws:
TransformationException
-
transform
public void transform(double[] in, double[] out) Transform a vector- Specified by:
transformin classTransformer- Parameters:
in- The input vector.out- The output vector, it may be the same as the input vector if the dimensionalities are the same. All transformers are expected to work with aliased inputs and output.
-
check
public void check()See if there are any optimizations we can do. -
inverse
Return the inverse of this series of transformations.- Specified by:
inversein classTransformer
-
isInverse
Is this the inverse of another transformation.- Specified by:
isInversein classTransformer
-