next up previous contents
Next: Function: ppmprint() Up: GRASP Routines: Time-Frequency Methods Previous: Function normalize_picture()   Contents

Function gen_quasiperiodic_signal()

void gen_quasiperiodic_signal(float *arr, int n, float fa, float fs, float pind, float ampind, float timfrac, float freqfrac, int *filled)

This routine generates a quasiperiodic signal with both frequency and amplitude increasing in time as power laws. The arguments are:

float *arr: Output. The array to contain the signal points.
int n: Input. The size of the data array.
float fa: Input. The initial frequency of the signal.
float fs: Input. The sampling frequency.
float pind: Input. The exponent for the power law increase in frequency.
float ampind: Input. The exponent for the power law increase in amplitude.
float timfrac: Input. The fraction of the length of the data array for which the signal lasts.
float freqfrac: Input. The fraction of the sampling frequency to be used as the upper cutoff frequency. Typically this should be around 15% of the sampling frequency.
int *filled Output. On return *filled contains the length of the signal.

Author: R. Balasubramanian, bala@chandra.phys.uwm.edu


next up previous contents
Next: Function: ppmprint() Up: GRASP Routines: Time-Frequency Methods Previous: Function normalize_picture()   Contents
Bruce Allen 2000-11-19