public class ShiftMap
- extends Mapping
Java interface to the AST ShiftMap class
- add a constant value to each coordinate.
A ShiftMap is a linear Mapping which shifts each axis by a
specified constant value.
This program is free software; you can redistribute it and/or
modify it under the terms of the GNU General Public Licence as
published by the Free Software Foundation; either version 2 of
the Licence, or (at your option) any later version.
This program is distributed in the hope that it will be
useful,but WITHOUT ANY WARRANTY; without even the implied
warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR
PURPOSE. See the GNU General Public Licence for more details.
You should have received a copy of the GNU General Public Licence
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street,Fifth Floor, Boston, MA
- See Also:
- AST ShiftMap
Creates a ShiftMap.
|Methods inherited from class uk.ac.starlink.ast.Mapping
decompose, getInvert, getNin, getNout, getReport, getTranForward, getTranInverse, invert, linearApprox, mapBox, mapSplit, rate, rebin, rebinD, rebinF, rebinI, resample, resampleB, resampleD, resampleF, resampleI, resampleL, resampleS, setInvert, setReport, simplify, tran1, tran2, tranGrid, tranN, tranP
|Methods inherited from class uk.ac.starlink.ast.AstObject
annul, clear, copy, delete, equals, finalize, getAstConstantI, getB, getC, getD, getF, getI, getID, getIdent, getL, getNobject, getObjSize, getRefCount, hashCode, isThreaded, reportVersions, sameObject, set, setB, setC, setD, setF, setI, setID, setIdent, setL, show, test, tune
public ShiftMap(double shift)
- Creates a ShiftMap.
The number of input coordinates is equal to the number of output
coordinates, and is equal to the number of elements in the
shift - An array containing the values to be added on to the input
coordinates in order to create the output coordinates. A separate
value should be supplied for each coordinate.
AstException - if an error occurred in the AST library
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.