Class LinearLocalisation
- All Implemented Interfaces:
LocalisationChi2
-
Constructor Summary
ConstructorDescriptionLinearLocalisation
(PamDataUnit pamDataUnit, int referenceHydrophones, PamVector[] arrayAxes, double bearing, Double range) -
Method Summary
Methods inherited from class PamDetection.AbstractLocalisation
addLocContents, bearingAmbiguity, getAmbiguityCount, getAngleErrors, getArrayOrientationVectors, getBearing, getBearing, getBearingError, getBearingReference, getDepth, getErrorDirection, getHeight, getHeightError, getLatLong, getLocContents, getLocError, getNumLatLong, getParallelError, getParentDetection, getPerpendiculaError, getPlanarAngles, getPlanarVector, getRangeError, getRealWorldVectors, getReferenceHydrophones, getSubArrayType, getTimeDelayChIndex, getTimeDelayErrors, getTimeDelays, getWorldVectors, hasLocContent, removeLocContents, setArrayAxis, setLocContents, setParentDetection, setReferenceHydrophones, setSubArrayType, toString
-
Constructor Details
-
LinearLocalisation
public LinearLocalisation(PamDataUnit pamDataUnit, int referenceHydrophones, PamVector[] arrayAxes, double bearing, Double range)
-
-
Method Details
-
getAngles
public double[] getAngles()- Overrides:
getAngles
in classAbstractLocalisation
- Returns:
- Angles to detection in radians. The number of angles will be 0, 1 or 2.
***************** CHANGES FROM AUGUST 2017 *******************
Now oriented the 'globe' differently, so that the first angle can be between -Pi and +Pi or between 0 and 2Pi. The second angle is the elevation angle which is either up (+ve angles) or down (-ve angles) having a range of -Pi/2 to +Pi/2. This change will only affect data from volumetric arrays when the animal is at significant depth. Changes are being made to data from click and whistle detectors which used the older system to maintain compatibility.For a point array, null should be returned.
For a line array a single angle is returned which is the angle relative to the first orientation vector with 0 being in line with the orientation vector (can be thought of as colatitude).
For a planar or volumetric array, two angles should be returned, the first being the colongitude, the second being the latitude. Imagine a globe, with North vertical and 0 longitude pointing along the main axis of the array geometry.
-
getRange
public double getRange(int iSide) Description copied from class:AbstractLocalisation
Get the range for a specific side (where ambiguity exists)- Overrides:
getRange
in classAbstractLocalisation
- Returns:
- range
-
getChi2
- Specified by:
getChi2
in interfaceLocalisationChi2
- Returns:
- A Chi2 value for the localisation
-
getNDF
- Specified by:
getNDF
in interfaceLocalisationChi2
- Returns:
- The number of degrees of freedom in the model used
-
getAic
- Specified by:
getAic
in interfaceLocalisationChi2
- Returns:
- the AIC.
-
getOriginLatLong
- Overrides:
getOriginLatLong
in classAbstractLocalisation
- Returns:
- the latlong of the centre of the hydrophones associated with the channels used in this detection. If no channels are set, then it returns the GPS location for the time of the detection.
-
getReferencePosition
- Returns:
- the referencePosition
-
setReferencePosition
- Parameters:
referencePosition
- the referencePosition to set
-