Class Simplex
java.lang.Object
Localiser.algorithms.genericLocaliser.simplex.old.Simplex
- All Implemented Interfaces:
 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
 
- 
Nested Class Summary
Nested Classes - 
Field Summary
Fields - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionChange any settings in the algorithm.doublegetChi2()double[]double[]longvoidRuns the localisation algorithm an creates a results.voidsetHydrophonePos(ArrayList<ArrayList<javax.vecmath.Point3f>> hydrophonePos) voidsetSampleRate(float sampleRate) voidsetSoundSpeed(double speedOfSound) voidsetTimeDelays(ArrayList<ArrayList<Double>> timeDelays) voidsetTimeDelaysErrors(ArrayList<ArrayList<Double>> timeDelayErrors) voidstop()Stop the localiser. 
- 
Field Details
- 
chi2
 
 - 
 - 
Constructor Details
- 
Simplex
 - 
Simplex
public Simplex() 
 - 
 - 
Method Details
- 
runAlgorithm
public void runAlgorithm()Description copied from interface:TimeDelayLocaliserModelRuns the localisation algorithm an creates a results. The results are dependednt on the localisation class.- Specified by:
 runAlgorithmin interfaceTimeDelayLocaliserModel
 - 
changeSettings
Description copied from interface:TimeDelayLocaliserModelChange any settings in the algorithm.- Specified by:
 changeSettingsin interfaceTimeDelayLocaliserModel- Returns:
 
 - 
setTimeDelays
 - 
setTimeDelaysErrors
 - 
setHydrophonePos
 - 
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
 - 
stop
public void stop()Description copied from interface:TimeDelayLocaliserModelStop 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:
 stopin interfaceTimeDelayLocaliserModel
 
 -