whistleDetector
Class WhistleLocaliser

java.lang.Object
  extended by whistleDetector.WhistleLocaliser

public class WhistleLocaliser
extends java.lang.Object

Author:
Doug Gillespie Utility functions to measure time delays for whistles and eventually to get localisations.

Field Summary
(package private)  Complex[] complexData
           
private  FastFFT fastFFt
           
(package private) static int WHISTLE_NODELAY
           
(package private)  WhistleControl whistleControl
           
 
Constructor Summary
WhistleLocaliser(WhistleControl whistleControl)
           
 
Method Summary
 int getDelay(FFTDataBlock fftDataBlock, WhistleShape whistle, int whistleChannel, int bearingChannel)
          Calculates the delay between a whistle on one channel and another given channel number.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

whistleControl

WhistleControl whistleControl

WHISTLE_NODELAY

static final int WHISTLE_NODELAY
See Also:
Constant Field Values

complexData

Complex[] complexData

fastFFt

private FastFFT fastFFt
Constructor Detail

WhistleLocaliser

public WhistleLocaliser(WhistleControl whistleControl)
Method Detail

getDelay

public int getDelay(FFTDataBlock fftDataBlock,
                    WhistleShape whistle,
                    int whistleChannel,
                    int bearingChannel)
Calculates the delay between a whistle on one channel and another given channel number. Used the whistle contour width and the sweep to calculate only in a very narrow band so that overlapping whistles may simultaneously get bearings calculated.

Parameters:
whistle -
Returns:
a delay in bins or WHISTLE_NODELAY.