|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectuk.ac.starlink.ttools.plot2.layer.CartesianErrorCoordSet
public class CartesianErrorCoordSet
MultiPointCoordSet for bidirectional errors in Cartesian data coordinates.
Constructor Summary | |
---|---|
CartesianErrorCoordSet(String[] axisNames,
int[] iErrDims)
Constructor. |
Method Summary | |
---|---|
static CartesianErrorCoordSet |
createAllAxesErrorCoordSet(String[] axisNames)
Returns a coord set with errors in all of the dimensions of a Cartesian space. |
static CartesianErrorCoordSet |
createSingleAxisErrorCoordSet(int ndim,
int iErrDim,
String errAxisName)
Returns a coord set with errors in a single indicated dimension of a Cartesian space. |
Coord[] |
getCoords()
Returns the coordinate definitions. |
int |
getPointCount()
Returns the number of (non-central) data positions defined by this coord set. |
boolean |
readPoints(TupleSequence tseq,
int icol,
double[] dpos0,
double[][] dposExtras)
Reads the non-central points from a appropriate span of columns in the current row of a supplied TupleSequence. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CartesianErrorCoordSet(String[] axisNames, int[] iErrDims)
nSpaceDim
dimensions.
axisNames
- nSpaceDim
-element array of names
of Cartesian axes (only those represented in
iErrDims
are actually used)iErrDims
- array of axis indices for which errors are to
be acquired; each element must be an index in the
range 0 <= x < nSpaceDim
Method Detail |
---|
public Coord[] getCoords()
MultiPointCoordSet
getCoords
in interface MultiPointCoordSet
public int getPointCount()
MultiPointCoordSet
getPointCount
in interface MultiPointCoordSet
public boolean readPoints(TupleSequence tseq, int icol, double[] dpos0, double[][] dposExtras)
MultiPointCoordSet
icol
value gives the column corresponding to
the first coord of this coordinate set in the sequence;
the following few columns are assumed to correspod 1:1 to
the coords in this coord set.
readPoints
in interface MultiPointCoordSet
tseq
- tuple sequence, positioned at the row of interesticol
- index of column in the sequence corresponding to
the first of the coordinates in this setdpos0
- nDataDim-element array giving central data positiondposExtras
- [nPointCount][nDataDim]-shaped array into which
the non-central data positions will be written
public static CartesianErrorCoordSet createAllAxesErrorCoordSet(String[] axisNames)
axisNames
- names of the dimensions; the length of this array
defines the dimensionality of the space
public static CartesianErrorCoordSet createSingleAxisErrorCoordSet(int ndim, int iErrDim, String errAxisName)
ndim
- dimensionality of the Cartesian spaceiErrDim
- index of the dimension for which error coordinates
are to be obtainederrAxisName
- label of the axis indicated by iErrDim
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |