Class GroupLocResult
java.lang.Object
Localiser.detectionGroupLocaliser.GroupLocResult
- All Implemented Interfaces:
Comparable<GroupLocResult>
,LocalisationChi2
Result class for the a group localiser. Usually this will be a target motion localisation, however could also be a group of DIFAR buoys
or other systems which uses a set of detections to localise animals.
- Author:
- Doug Gillespie
-
Constructor Summary
ConstructorDescriptionGroupLocResult
(double[] result, double[] resultErrors, int side, double chi2) GroupLocResult
(LocaliserModel targetMotionModel, LatLong latLong, int side, double chi2) GroupLocResult
(LatLong latLong, int side, double chi2) Constructor for a group detection result. -
Method Summary
Modifier and TypeMethodDescriptionint
Compare two results based on AIC and if there isn't AIC then use Chi2.getAic()
getChi2()
double
Get the error in radians.Get the vector which points in perpendicular direction to the localisation in the xy plane.Get thelocalisation error.getModel()
getNDF()
double
Get the error which is parallel to the perpendicular error.Get the error in the perpendicular direction.int
int
getSide()
Double[]
Convenience class to get errors in x y and z co-ordinate frame.double
Get the Cartesian z error in localisation.void
void
setBeamLatLong
(LatLong beamLatLong) void
setBeamTime
(Long beamTime) void
setChi2
(double chi2) void
setComment
(String comment) void
setDim
(int dim) The number of dimensions of the resutl, usually 2 or 3.void
setError
(LocaliserError error) Set the localisation error.void
setFirstBearing
(PamVector firstBearing) void
setFirstHeading
(Double firstHeading) void
setLatLong
(LatLong latLong) void
setModel
(LocaliserModel model) void
setnDegreesFreedom
(Integer nDegreesFreedom) void
setPerpendicularDistance
(Double perpendicularDistance) void
setPerpErrorVector
(PamVector perpVecor) Set the vector which points in perpendicular direction to the localisation in the xy plane.void
setProbability
(Double probability) void
setReferenceHydrophones
(int referenceHydrophones) void
setRunTimeMillis
(Double runTimeMillis) void
setSide
(int side) toString()
-
Constructor Details
-
GroupLocResult
- Parameters:
latLong
-side
-chi2
-
-
GroupLocResult
Constructor for a group detection result.- Parameters:
latLong
- - the location of the resultside
- - the ambiguitychi2
- - the chi2 value i.e. how well the localisation result fits the localisation model.
-
GroupLocResult
public GroupLocResult(double[] result, double[] resultErrors, int side, double chi2)
-
-
Method Details
-
getLatLong
- Returns:
- the latLong
-
setLatLong
- Parameters:
latLong
- the latLong to set
-
getSide
public int getSide()- Returns:
- the side
-
getZError
public double getZError()Get the Cartesian z error in localisation. Error is 95% confidence interval. Note z is used to define the depth. Negative is below sea surface.- Returns:
-
getXYZErrors
Convenience class to get errors in x y and z co-ordinate frame.- Returns:
- the x, y and z error.
-
setSide
public void setSide(int side) - Parameters:
side
- the side to set
-
getChi2
- Specified by:
getChi2
in interfaceLocalisationChi2
- Returns:
- the chi2
-
setChi2
public void setChi2(double chi2) - Parameters:
chi2
- the chi2 to set
-
getPerpendicularDistance
- Returns:
- the perpendicularDistance
-
setPerpendicularDistance
- Parameters:
perpendicularDistance
- the perpendicularDistance to set
-
getPerpendicularDistanceError
Get the error in the perpendicular direction. The perpindicular direction is defined by setErrorVector(PamVector perpVecor).- Returns:
- the perpendicularDistanceError
-
getParallelError
public double getParallelError()Get the error which is parallel to the perpendicular error. Note that the parallel error is 2D so it is rotated only in heading.- Returns:
- the value of the parallel error
-
setError
Set the localisation error.- Parameters:
error
- the error class for this loclisation
-
getLocError
Get thelocalisation error.- Returns:
- error the error class for this loclisation
-
getAic
- Specified by:
getAic
in interfaceLocalisationChi2
- Returns:
- the aic
-
setAic
- Parameters:
aic
- the aic to set
-
getRunTimeMillis
- Returns:
- the runTimeMillis
-
setRunTimeMillis
- Parameters:
runTimeMillis
- the runTimeMillis to set
-
getnDegreesFreedom
- Returns:
- the nDegreesFreedom
-
setnDegreesFreedom
- Parameters:
nDegreesFreedom
- the nDegreesFreedom to set
-
getProbability
- Returns:
- the probability
-
setProbability
- Parameters:
probability
- the probability to set
-
getReferenceHydrophones
public int getReferenceHydrophones()- Returns:
- the referenceHydrophones
-
setReferenceHydrophones
public void setReferenceHydrophones(int referenceHydrophones) - Parameters:
referenceHydrophones
- the referenceHydrophones to set
-
setComment
-
getComment
-
setBeamLatLong
- Parameters:
beamLatLong
- the beamLatLong to set
-
getBeamLatLong
- Returns:
- the beamLatLong
-
getBeamTime
- Returns:
- the beamTime
-
setBeamTime
- Parameters:
beamTime
- the beamTime to set
-
toString
-
getFirstBearing
- Returns:
- the firstBearing
-
setFirstBearing
- Parameters:
firstBearing
- the firstBearing to set in RADIANS
-
getFirstHeading
- Returns:
- the firstHeading
-
setFirstHeading
- Parameters:
firstHeading
- the firstHeading to set
-
getModel
-
setModel
-
setDim
public void setDim(int dim) The number of dimensions of the resutl, usually 2 or 3.- Parameters:
dim
- the number of dimensions
-
getErrorDirection
public double getErrorDirection()Get the error in radians.- Returns:
- the error direction.
-
getErrorVector
Get the vector which points in perpendicular direction to the localisation in the xy plane. This is used to work out perpendicular and parallel errors.- Returns:
- the vector which points in the perpindicualr direction to the localisation
-
setPerpErrorVector
Set the vector which points in perpendicular direction to the localisation in the xy plane. This is used to work out perpendicular and parallel errors.- Parameters:
a
- vector representing the perpindicular direction of the error.
-
compareTo
Compare two results based on AIC and if there isn't AIC then use Chi2. If no chi2, give up and say they are the same.- Specified by:
compareTo
in interfaceComparable<GroupLocResult>
-
getNDF
- Specified by:
getNDF
in interfaceLocalisationChi2
- Returns:
- The number of degrees of freedom in the model used
-