|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.ObjectLocaliser.PairBearingLocaliser
public class PairBearingLocaliser
Really simple BearingLocaliser which works with two element closely spaced arrays.
| Field Summary | |
|---|---|
private PamVector[] |
arrayAxis
|
private int |
arrayType
|
private PamArray |
currentArray
|
private int[] |
phoneNumbers
|
private double |
spacing
|
private double |
spacingError
|
private double |
speedOfSound
|
private double |
speedOfSoundError
|
private double |
timingError
|
| Constructor Summary | |
|---|---|
PairBearingLocaliser(int[] hydrophoneList,
double timingError)
|
|
PairBearingLocaliser(int hydrophoneBitMap,
double timingError)
|
|
| Method Summary | |
|---|---|
PamVector[] |
getArrayAxis()
Get the principle axis of the array |
int |
getArrayType()
|
double[][] |
localise(double[] delays)
Calculate angles theta and phi, based on a set of delays. |
void |
prepare(int[] arrayElements,
double timingError)
Do any preparation necessary (e.g. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
private int[] phoneNumbers
private double spacing
private double spacingError
private double speedOfSound
private double speedOfSoundError
private PamArray currentArray
private PamVector[] arrayAxis
private int arrayType
private double timingError
| Constructor Detail |
|---|
public PairBearingLocaliser(int hydrophoneBitMap,
double timingError)
public PairBearingLocaliser(int[] hydrophoneList,
double timingError)
| Method Detail |
|---|
public void prepare(int[] arrayElements,
double timingError)
BearingLocaliser
prepare in interface BearingLocaliserarrayElements - list of hydrophone array elements in the
sub array for this localiser.timingError - expected timing error for each measurement (typically
1/12 of an ADC bin, or less if interpolation is being used in the cross correlation function).public PamVector[] getArrayAxis()
BearingLocaliser
getArrayAxis in interface BearingLocaliserfor a planar array, this will be the vector on the plane between two hydrophones which is closest to the y axis.
public int getArrayType()
getArrayType in interface BearingLocaliserpublic double[][] localise(double[] delays)
BearingLocaliser
localise in interface BearingLocaliserdelays - array of delay times.
Data are packed into a two row array, the first row of which contains one or two angles, the second (optional) row contains the errors on those angles.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||