whistlesAndMoans
Class WhistleDelays

java.lang.Object
  extended by 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

Nested Class Summary
(package private)  class WhistleDelays.DelayMeasure
           
 
Field Summary
private  int[] channelList
           
private  int channelMap
           
private  WhistleDelays.DelayMeasure[] delayMeasures
           
private  FastFFT fft
           
private  int nChannels
           
(package private)  int nDelays
           
private  FFTDataBlock sourceData
           
private  WhistleMoanControl whistleMoanControl
           
private  WhistleToneConnectProcess whProcess
           
 
Constructor Summary
WhistleDelays(WhistleMoanControl whistleMoanControl, int channelMap)
           
 
Method Summary
 double[] getDelays(ConnectedRegion region)
          Gets the delays for a connected region.
 void prepareBearings()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

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
Constructor Detail

WhistleDelays

public WhistleDelays(WhistleMoanControl whistleMoanControl,
                     int channelMap)
Method Detail

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 bitmap
region - connected region
Returns:
array of delays from cross correlation in samples.