Class GroupLocResult

java.lang.Object
Localiser.detectionGroupLocaliser.GroupLocResult
All Implemented Interfaces:
Comparable<GroupLocResult>, LocalisationChi2
Direct Known Subclasses:
LinearGroupLocResult

public class GroupLocResult extends Object implements 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 Details Link icon

    • GroupLocResult Link icon

      public GroupLocResult(LocaliserModel targetMotionModel, LatLong latLong, int side, double chi2)
      Parameters:
      latLong -
      side -
      chi2 -
    • GroupLocResult Link icon

      public GroupLocResult(LatLong latLong, int side, double chi2)
      Constructor for a group detection result.
      Parameters:
      latLong - - the location of the result
      side - - the ambiguity
      chi2 - - the chi2 value i.e. how well the localisation result fits the localisation model.
  • Method Details Link icon

    • getLatLong Link icon

      public LatLong getLatLong()
      Returns:
      the latLong
    • setLatLong Link icon

      public void setLatLong(LatLong latLong)
      Parameters:
      latLong - the latLong to set
    • getSide Link icon

      public int getSide()
      Returns:
      the side
    • getZError Link icon

      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 Link icon

      public Double[] getXYZErrors()
      Convenience class to get errors in x y and z co-ordinate frame.
      Returns:
      the x, y and z error.
    • setSide Link icon

      public void setSide(int side)
      Parameters:
      side - the side to set
    • getChi2 Link icon

      public Double getChi2()
      Specified by:
      getChi2 in interface LocalisationChi2
      Returns:
      the chi2
    • setChi2 Link icon

      public void setChi2(double chi2)
      Parameters:
      chi2 - the chi2 to set
    • getPerpendicularDistance Link icon

      public Double getPerpendicularDistance()
      Returns:
      the perpendicularDistance
    • setPerpendicularDistance Link icon

      public void setPerpendicularDistance(Double perpendicularDistance)
      Parameters:
      perpendicularDistance - the perpendicularDistance to set
    • getPerpendicularDistanceError Link icon

      public Double getPerpendicularDistanceError()
      Get the error in the perpendicular direction. The perpindicular direction is defined by setErrorVector(PamVector perpVecor).
      Returns:
      the perpendicularDistanceError
    • getParallelError Link icon

      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 Link icon

      public void setError(LocaliserError error)
      Set the localisation error.
      Parameters:
      error - the error class for this loclisation
    • getLocError Link icon

      public LocaliserError getLocError()
      Get thelocalisation error.
      Returns:
      error the error class for this loclisation
    • getAic Link icon

      public Double getAic()
      Specified by:
      getAic in interface LocalisationChi2
      Returns:
      the aic
    • setAic Link icon

      public void setAic(Double aic)
      Parameters:
      aic - the aic to set
    • getRunTimeMillis Link icon

      public Double getRunTimeMillis()
      Returns:
      the runTimeMillis
    • setRunTimeMillis Link icon

      public void setRunTimeMillis(Double runTimeMillis)
      Parameters:
      runTimeMillis - the runTimeMillis to set
    • getnDegreesFreedom Link icon

      public Integer getnDegreesFreedom()
      Returns:
      the nDegreesFreedom
    • setnDegreesFreedom Link icon

      public void setnDegreesFreedom(Integer nDegreesFreedom)
      Parameters:
      nDegreesFreedom - the nDegreesFreedom to set
    • getProbability Link icon

      public Double getProbability()
      Returns:
      the probability
    • setProbability Link icon

      public void setProbability(Double probability)
      Parameters:
      probability - the probability to set
    • getReferenceHydrophones Link icon

      public int getReferenceHydrophones()
      Returns:
      the referenceHydrophones
    • setReferenceHydrophones Link icon

      public void setReferenceHydrophones(int referenceHydrophones)
      Parameters:
      referenceHydrophones - the referenceHydrophones to set
    • setComment Link icon

      public void setComment(String comment)
    • getComment Link icon

      public String getComment()
    • setBeamLatLong Link icon

      public void setBeamLatLong(LatLong beamLatLong)
      Parameters:
      beamLatLong - the beamLatLong to set
    • getBeamLatLong Link icon

      public LatLong getBeamLatLong()
      Returns:
      the beamLatLong
    • getBeamTime Link icon

      public Long getBeamTime()
      Returns:
      the beamTime
    • setBeamTime Link icon

      public void setBeamTime(Long beamTime)
      Parameters:
      beamTime - the beamTime to set
    • toString Link icon

      public String toString()
      Overrides:
      toString in class Object
    • getFirstBearing Link icon

      public PamVector getFirstBearing()
      Returns:
      the firstBearing
    • setFirstBearing Link icon

      public void setFirstBearing(PamVector firstBearing)
      Parameters:
      firstBearing - the firstBearing to set in RADIANS
    • getFirstHeading Link icon

      public Double getFirstHeading()
      Returns:
      the firstHeading
    • setFirstHeading Link icon

      public void setFirstHeading(Double firstHeading)
      Parameters:
      firstHeading - the firstHeading to set
    • getModel Link icon

      public LocaliserModel getModel()
    • setModel Link icon

      public void setModel(LocaliserModel model)
    • setDim Link icon

      public void setDim(int dim)
      The number of dimensions of the resutl, usually 2 or 3.
      Parameters:
      dim - the number of dimensions
    • getErrorDirection Link icon

      public double getErrorDirection()
      Get the error in radians.
      Returns:
      the error direction.
    • getErrorVector Link icon

      public PamVector 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 Link icon

      public void setPerpErrorVector(PamVector perpVecor)
      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 Link icon

      public int compareTo(GroupLocResult o)
      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 interface Comparable<GroupLocResult>
    • getNDF Link icon

      public Integer getNDF()
      Specified by:
      getNDF in interface LocalisationChi2
      Returns:
      The number of degrees of freedom in the model used