Select your preferred scripting language. All code snippets will be displayed in this language.
Thank you for helping us improve the quality of Unity Documentation. Although we cannot accept all submissions, we do read each suggested change from our users and will make updates where applicable.Close
For some reason your suggested change could not be submitted. Please <a>try again</a> in a few minutes. And thank you for taking the time to help us improve the quality of Unity Documentation.Close
Spectrum analysis windowing types.
Use this to reduce leakage of signals across frequency bands.
|Rectangular||W[n] = 1.0.|
|Triangle||W[n] = TRI(2n/N).|
|Hamming||W[n] = 0.54 - (0.46 * COS(n/N) ).|
|Hanning||W[n] = 0.5 * (1.0 - COS(n/N) ).|
|Blackman||W[n] = 0.42 - (0.5 * COS(n/N) ) + (0.08 * COS(2.0 * n/N) ).|
|BlackmanHarris||W[n] = 0.35875 - (0.48829 * COS(1.0 * n/N)) + (0.14128 * COS(2.0 * n/N)) - (0.01168 * COS(3.0 * n/N)).|