#ifndef _Wavelet_h_
#define _Wavelet_h_
/* Wavelet.h; David Weenink & Paul Boersma, August 16, 1996 */

#ifndef _Data_h_
	#include "Data.h"
#endif
#ifndef _Graphics_h_
	#include "Graphics.h"
#endif

#include "Wavelet_def.h"
#define Wavelet_methods Data_methods
oo_CLASS_CREATE (Wavelet, Data)

Wavelet Wavelet_create (long n, double highestFrequency, long ncof);
/*
	Function:
		return a new Wavelet, or NULL if out of memory.
	Preconditions:
		n > 0;
		ncof > 0;
		highestFrequency > 0.0;
	Postconditions:
		my n == n;
		my ncof == ncof;
		my highestFrequency == highestFrequency;
*/ 

void Wavelet_draw (Wavelet me, Graphics g, double tmin, double tmax, double fmin, double fmax);
 
Wavelet Wavelet_truncateByFraction (Wavelet me, double fraction);
/*
	Function:
		truncate to zero all wavelet samples
		whose absolute values are below the set quantile 1 - "fraction".  
	Preconditions:
		0.0 < fraction <= 1.0;
*/ 

Wavelet Wavelet_truncateByLevel (Wavelet me, double level);
/*
	Function:
		truncate all wavelet values to zeros, that are below "level".  
*/
 
double Wavelet_fractionBelowLevel (Wavelet me, double level);
/*
	Function:
		calculates the fraction of the wavelet amplitudes whose absolute values are below "level".
	Postconditions:
		0.0 <= result <= 1.0;
*/

/* End of file Wavelet.h */
#endif

