whistlesAndMoans
Class WhistleDelays
java.lang.Object
whistlesAndMoans.WhistleDelays
public class WhistleDelays
- extends java.lang.Object
Class for estimating whistle delays from a whistle shape.
to save processing, one of these should be created for each channel group
so that multiple delay measures can be pre prepared and populated
simultaneously - i.e. each bit of FFT data will need to go into one
measure as it, but into the next as it's complex conjugate.
Doing everything at once should save data access times.
- Author:
- Doug Gillespie
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
whistleMoanControl
private WhistleMoanControl whistleMoanControl
whProcess
private WhistleToneConnectProcess whProcess
sourceData
private FFTDataBlock sourceData
channelMap
private int channelMap
nChannels
private int nChannels
channelList
private int[] channelList
nDelays
int nDelays
delayMeasures
private WhistleDelays.DelayMeasure[] delayMeasures
fft
private FastFFT fft
WhistleDelays
public WhistleDelays(WhistleMoanControl whistleMoanControl,
int channelMap)
prepareBearings
public void prepareBearings()
getDelays
public double[] getDelays(ConnectedRegion region)
- Gets the delays for a connected region.
nChan(nChan-1)/2 delays will be returned.
Delays are channels 0-1, 0-2, 1-2, etc.
- Parameters:
channelMap - channel bitmapregion - connected region
- Returns:
- array of delays from cross correlation in samples.