whistleClassifier
Class WhistleFragmenter

java.lang.Object
  extended by whistleClassifier.WhistleFragmenter
Direct Known Subclasses:
OverlappingFragmenter

public abstract class WhistleFragmenter
extends java.lang.Object

Break a whistle up into fragments.

Really all we need to know is the start of each fragment

Author:
Doug Gillespie

Field Summary
private  int fragmentLength
           
 
Constructor Summary
WhistleFragmenter()
           
 
Method Summary
 int getFragmentLength()
           
 WhistleFragment[] getFragments(WhistleContour whistleContour)
          Create an array of whistle fragments from a whistle contour.
abstract  int[] getFragmentStarts(int shapeLen)
           
 void setFragmentLength(int fragmentLength)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

fragmentLength

private int fragmentLength
Constructor Detail

WhistleFragmenter

public WhistleFragmenter()
Method Detail

getFragmentStarts

public abstract int[] getFragmentStarts(int shapeLen)

setFragmentLength

public void setFragmentLength(int fragmentLength)

getFragmentLength

public int getFragmentLength()

getFragments

public WhistleFragment[] getFragments(WhistleContour whistleContour)
Create an array of whistle fragments from a whistle contour.

Parameters:
whistleContour - contour to extract fragments from .
Returns:
array of fragments