Class GroupLocResult
java.lang.Object
Localiser.detectionGroupLocaliser.GroupLocResult
- All Implemented Interfaces:
 Comparable<GroupLocResult>,LocalisationChi2
- Direct Known Subclasses:
 LinearGroupLocResult
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
ConstructorsConstructorDescriptionGroupLocResult(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 TypeMethodDescriptionintCompare two results based on AIC and if there isn't AIC then use Chi2.getAic()getChi2()doubleGet the error in radians.Get the vector which points in perpendicular direction to the localisation in the xy plane.Get thelocalisation error.getModel()getNDF()doubleGet the error which is parallel to the perpendicular error.Get the error in the perpendicular direction.intintgetSide()Double[]Convenience class to get errors in x y and z co-ordinate frame.doubleGet the Cartesian z error in localisation.voidvoidsetBeamLatLong(LatLong beamLatLong) voidsetBeamTime(Long beamTime) voidsetChi2(double chi2) voidsetComment(String comment) voidsetDim(int dim) The number of dimensions of the resutl, usually 2 or 3.voidsetError(LocaliserError error) Set the localisation error.voidsetFirstBearing(PamVector firstBearing) voidsetFirstHeading(Double firstHeading) voidsetLatLong(LatLong latLong) voidsetModel(LocaliserModel model) voidsetnDegreesFreedom(Integer nDegreesFreedom) voidsetPerpendicularDistance(Double perpendicularDistance) voidsetPerpErrorVector(PamVector perpVecor) Set the vector which points in perpendicular direction to the localisation in the xy plane.voidsetProbability(Double probability) voidsetReferenceHydrophones(int referenceHydrophones) voidsetRunTimeMillis(Double runTimeMillis) voidsetSide(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.
 
 - 
 - 
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:
 getChi2in 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:
 getAicin 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:
 compareToin interfaceComparable<GroupLocResult>
 - 
getNDF
- Specified by:
 getNDFin interfaceLocalisationChi2- Returns:
 - The number of degrees of freedom in the model used
 
 
 -