java.lang.Object
Localiser.algorithms.genericLocaliser.simplex.old.Simplex
All Implemented Interfaces:
TimeDelayLocaliserModel

public class Simplex extends Object implements TimeDelayLocaliserModel
Time delay based simplex method for localisation. Note that a lot of the code here has been referenced directly from static MCMC functions. This is because both MCMC and Simplex are based on the forward time delay problem hence are mathematically very similar. Simplex is much faster than MCMC but does not provide a full 3D probability distribution.
Author:
Jamie Macaulay
  • Field Details

  • Constructor Details

  • Method Details

    • runAlgorithm

      public void runAlgorithm()
      Description copied from interface: TimeDelayLocaliserModel
      Runs the localisation algorithm an creates a results. The results are dependednt on the localisation class.
      Specified by:
      runAlgorithm in interface TimeDelayLocaliserModel
    • changeSettings

      public Boolean changeSettings()
      Description copied from interface: TimeDelayLocaliserModel
      Change any settings in the algorithm.
      Specified by:
      changeSettings in interface TimeDelayLocaliserModel
      Returns:
    • setTimeDelays

      public void setTimeDelays(ArrayList<ArrayList<Double>> timeDelays)
    • setTimeDelaysErrors

      public void setTimeDelaysErrors(ArrayList<ArrayList<Double>> timeDelayErrors)
    • setHydrophonePos

      public void setHydrophonePos(ArrayList<ArrayList<javax.vecmath.Point3f>> hydrophonePos)
    • setSampleRate

      public void setSampleRate(float sampleRate)
    • setSoundSpeed

      public void setSoundSpeed(double speedOfSound)
    • getLocation

      public double[] getLocation()
    • getLocationErrors

      public double[] getLocationErrors()
    • getRunTime

      public long getRunTime()
    • getChi2

      public double getChi2()
    • getChi2Function

      public Simplex.Chi2 getChi2Function()
    • stop

      public void stop()
      Description copied from interface: TimeDelayLocaliserModel
      Stop the localiser. For MCMC, which can takes minutes to compute this is important. For other localisers, such as Simplex, this is unimportant and can be left blank.
      Specified by:
      stop in interface TimeDelayLocaliserModel