LASP 1.0
Library for Acoustic Signal Processing
Loading...
Searching...
No Matches
tools.py File Reference

Go to the source code of this file.

Classes

class  lasp.tools.tools.SmoothingWidth
 
class  lasp.tools.tools.SmoothingType
 
class  lasp.tools.tools.sw
 

Namespaces

namespace  lasp
 LASP: Library for Acoustic Signal Processing.
 
namespace  lasp.tools
 
namespace  lasp.tools.tools
 Author: T.
 

Functions

 lasp.tools.tools.intHann (x1, x2)
 Calculate integral of (part of) Hann window.
 
 lasp.tools.tools.smoothCalcMatrix (freq, SmoothingWidth sw)
 Args: freq: array of frequencies of data points [Hz] - equally spaced sw: SmoothingWidth.
 
 lasp.tools.tools.smoothSpectralData (freq, M, SmoothingWidth sw, SmoothingType st=SmoothingType.levels)
 Apply fractional octave smoothing to data in the frequency domain.
 

Variables

int lasp.tools.tools.Noct = 2
 
int lasp.tools.tools.fmin = 1e3
 
int lasp.tools.tools.fmax = 24e3
 
int lasp.tools.tools.Ndata = 200
 
 lasp.tools.tools.freq = np.linspace(fmin, fmax, Ndata)
 
float lasp.tools.tools.M = abs(0.4*np.random.normal(size=(len(freq),)))+0.01
 
 lasp.tools.tools.st
 
 lasp.tools.tools.Msm = smoothSpectralData(freq, M, sw, st)
 
 lasp.tools.tools.fsm = freq