public class Hyperbolic extends java.lang.Object implements TimeDelayLocaliserModel
Modifier and Type | Field and Description |
---|---|
static int |
LOC_2D_X
2D on the yz plane
|
static int |
LOC_2D_Y
2D on the xz plane.
|
static int |
LOC_2D_Z
2D on the xy plane
|
static int |
LOC_3D
3D localisation.
|
Constructor and Description |
---|
Hyperbolic(java.util.ArrayList<java.util.ArrayList<javax.vecmath.Point3f>> hydrophoneArray,
java.util.ArrayList<java.util.ArrayList<java.lang.Double>> timeDelays,
java.util.ArrayList<java.util.ArrayList<java.lang.Double>> timeDelayErrors,
float speedOfSound) |
Hyperbolic(StaticLocalise staticLocalise) |
Modifier and Type | Method and Description |
---|---|
double[] |
calcSource(java.util.ArrayList<java.lang.Double> timeDelays,
java.util.ArrayList<javax.vecmath.Point3f> hydrophonePos,
double speedOfSound) |
java.lang.Boolean |
changeSettings()
Change any settings in the algorithm.
|
static double[] |
createMatrixARow2D(double td,
javax.vecmath.Point3f hLoc,
double speedofSound,
int type)
Calculate a row for matrix A of (Am=b) in hyperbolic localisation;
|
static double[] |
createMatrixARow3D(double td,
javax.vecmath.Point3f hLoc,
double speedofSound)
Calculate a row for matrix A of (Am=b) in hyperbolic localisation;
|
static double[] |
createMatrixBrow2D(double td,
javax.vecmath.Point3f hLoc,
double speedofSound,
int type)
Calculate a row for matrix A of (Am=b) in hyperbolic localisation - this is for the 2D case.
|
static double[] |
createMatrixBrow3D(double td,
javax.vecmath.Point3f hLoc,
double speedofSound)
Calculate a row for matrix A of (Am=b) in hyperbolic localisation -for the 3D problem
|
int |
getCurrentType() |
java.util.ArrayList<java.util.ArrayList<javax.vecmath.Point3f>> |
getHydrophoneArray() |
double[] |
getResult() |
double |
getSpeedOfSound() |
java.util.ArrayList<java.util.ArrayList<java.lang.Double>> |
getTimeDelaysObs() |
void |
runAlgorithm()
Runs the localisation algorithm an creates a results.
|
void |
setCurrentType(int currentType) |
void |
setHydrophoneArray(java.util.ArrayList<java.util.ArrayList<javax.vecmath.Point3f>> hydrophoneArray) |
void |
setSpeedOfSound(double d) |
void |
setTimeDelaysObs(java.util.ArrayList<java.util.ArrayList<java.lang.Double>> timeDelaysObs) |
void |
stop()
Stop the localiser.
|
public static final int LOC_3D
public static final int LOC_2D_Z
public static final int LOC_2D_X
public static final int LOC_2D_Y
public Hyperbolic(java.util.ArrayList<java.util.ArrayList<javax.vecmath.Point3f>> hydrophoneArray, java.util.ArrayList<java.util.ArrayList<java.lang.Double>> timeDelays, java.util.ArrayList<java.util.ArrayList<java.lang.Double>> timeDelayErrors, float speedOfSound)
public Hyperbolic(StaticLocalise staticLocalise)
public double[] calcSource(java.util.ArrayList<java.lang.Double> timeDelays, java.util.ArrayList<javax.vecmath.Point3f> hydrophonePos, double speedOfSound)
timeDelays
- hydrophonePos
- speedOfSound
- public static double[] createMatrixARow3D(double td, javax.vecmath.Point3f hLoc, double speedofSound)
td-
- time delay in secondshLoc-
- position of hydrophone, asusming the primary hydrophone at the origin.speedofSound-
- speed of sound in meters per second.public static double[] createMatrixARow2D(double td, javax.vecmath.Point3f hLoc, double speedofSound, int type)
td-
- time delay in secondshLoc-
- position of hydrophone, asusming the primary hydrophone at the origin.speedofSound-
- speed of sound in meters per second.public static double[] createMatrixBrow3D(double td, javax.vecmath.Point3f hLoc, double speedofSound)
td-
- time delay in secondshLoc-
- position of hydrophone, assuming the primary hydrophone at the origin.speedofSound-
- speed of sound in meters per second.public static double[] createMatrixBrow2D(double td, javax.vecmath.Point3f hLoc, double speedofSound, int type)
td-
- time delay in secondshLoc-
- position of hydrophone, assuming the primary hydrophone at the origin.speedofSound-
- speed of sound in meters per second.public void runAlgorithm()
TimeDelayLocaliserModel
runAlgorithm
in interface TimeDelayLocaliserModel
public double[] getResult()
public java.lang.Boolean changeSettings()
TimeDelayLocaliserModel
changeSettings
in interface TimeDelayLocaliserModel
public java.util.ArrayList<java.util.ArrayList<java.lang.Double>> getTimeDelaysObs()
public java.util.ArrayList<java.util.ArrayList<javax.vecmath.Point3f>> getHydrophoneArray()
public double getSpeedOfSound()
public void setTimeDelaysObs(java.util.ArrayList<java.util.ArrayList<java.lang.Double>> timeDelaysObs)
public void setHydrophoneArray(java.util.ArrayList<java.util.ArrayList<javax.vecmath.Point3f>> hydrophoneArray)
public void setSpeedOfSound(double d)
public void stop()
TimeDelayLocaliserModel
stop
in interface TimeDelayLocaliserModel
public int getCurrentType()
public void setCurrentType(int currentType)