imat_fn/psd2trans (+Signal)


Purpose

Generate transient from Power Spectral Density.

Syntax

outtrans=psd2trans(psdfun,deltat,duration)
[outtrans,stats]=psd2trans(psdfun,deltat,duration,'silent',interptype)

Description

PSD2TRANS generates a transient using a summation of sine waves with random phase. PSDFUN is an imat_fn containing one or more power spectral density functions. DELTAT is the time increment to be used in the equivalent transient function. DURATION is the total length of the equivalent transient function. To use the default value for DELTA or DURATION, enter [].

The default value for DELTAT is 10 points in time at the highest frequency. The default value for DURATION is 10 cycles at the lowest frequency.

If the string 'silent' is passed in, all text output is suppressed including warnings. INTERPTYPE is an optional string argument defining the interpolation method used for the PSD. Accepted values for INTERPTYPE are: 'linlin' or ('lin'), 'linlog', 'loglin', or 'loglog'. 'loglog' is the default.

OUTTRANS is an imat_fn containing the transient(s). STATS is an 8xnumFunc array containing some useful statistics of the function(s). The rows contain the following info:

row 1: mean value of equivalent transient
row 2: RMS value of input PSD
row 3: RMS value of equivalent transient
row 4: number of peaks between 1 and 2 standard deviations
row 5: number of peaks between 2 and 3 standard deviations
row 6: number of peaks between 3 and 4 standard deviations
row 7: number of peaks above 4 standard deviations
row 8: ratio of peak value to RMS value for equivalent transient

 

See Also

imat_fn/csd2trans, imat_fn/psd