MultiPointCoordSet
public class PlaneCorrelationCoordSet extends java.lang.Object implements MultiPointCoordSet
Constructor | Description |
---|---|
PlaneCorrelationCoordSet() |
Constructor.
|
Modifier and Type | Method | Description |
---|---|---|
static void |
calculateErrorVectors(double xerr,
double yerr,
double xycorr,
double[] ra,
double[] rb) |
Calculates the vectors defining an error ellipse from the
errors on each axis and a correlation value.
|
static MultiPointForm |
createForm() |
Creates a MultiPointForm that can plot ellipses on the plane,
corresponding to this coordset.
|
Coord[] |
getCoords() |
Returns the coordinate definitions.
|
int |
getPointCount() |
Returns the number of (non-central) data positions defined by this
coord set.
|
boolean |
readPoints(Tuple tuple,
int icol,
DataGeom geom,
double[] xy0,
double[][] xyExtras) |
Reads the non-central points from a appropriate span of columns
in a supplied tuple.
|
public Coord[] getCoords()
MultiPointCoordSet
getCoords
in interface MultiPointCoordSet
public int getPointCount()
MultiPointCoordSet
getPointCount
in interface MultiPointCoordSet
public boolean readPoints(Tuple tuple, int icol, DataGeom geom, double[] xy0, double[][] xyExtras)
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
tuple
- tupleicol
- index of tuple field corresponding to
the first of the coordinates in this setgeom
- converter between tuple values and
data space coordinates; may not be requiredxy0
- nDataDim-element array giving central data positionxyExtras
- [nPointCount][nDataDim]-shaped array into which
the non-central data positions will be writtenpublic static void calculateErrorVectors(double xerr, double yerr, double xycorr, double[] ra, double[] rb)
xerr
- error in X coordinateyerr
- error in Y coordinatexycorr
- dimensionless X-Y correlation in range -1..+1ra
- 2-element vector to receive primary radius vectorrb
- 2-element vector to receive secondary radius vectorpublic static MultiPointForm createForm()
Copyright © 2018 Central Laboratory of the Research Councils. All Rights Reserved.