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
-
Field Summary
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionChange any settings in the algorithm.double
getChi2()
double[]
double[]
long
void
Runs the localisation algorithm an creates a results.void
setHydrophonePos
(ArrayList<ArrayList<javax.vecmath.Point3f>> hydrophonePos) void
setSampleRate
(float sampleRate) void
setSoundSpeed
(double speedOfSound) void
setTimeDelays
(ArrayList<ArrayList<Double>> timeDelays) void
setTimeDelaysErrors
(ArrayList<ArrayList<Double>> timeDelayErrors) void
stop()
Stop the localiser.
-
Field Details
-
chi2
-
-
Constructor Details
-
Simplex
-
Simplex
public Simplex()
-
-
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 interfaceTimeDelayLocaliserModel
-
changeSettings
Description copied from interface:TimeDelayLocaliserModel
Change any settings in the algorithm.- Specified by:
changeSettings
in 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: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 interfaceTimeDelayLocaliserModel
-