Programmer Guide/Command Reference/EVAL/zcross: Difference between revisions
From STX Wiki
< Programmer Guide | Command Reference | EVAL
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 7: | Line 7: | ||
:;<var>type</var>:selects the type of result; 0 <= ''type'' <= 3 (default=0) | :;<var>type</var>:selects the type of result; 0 <= ''type'' <= 3 (default=0) | ||
:;<var>sr</var>: sampling rate in Hz (default=1) | :;<var>sr</var>: sampling rate in Hz (default=1) | ||
;Result: The function counts the number of zero crossings ''nz'' of the function ''x'' | ;Result: The function counts the number of zero crossings ''nz'' of the function <code>''x[i]'' = f(i)</code>. The returned result is a scalar depending on ''nz'' and the argument ''type''. | ||
:{|class="einrahmen" | :{|class="einrahmen" | ||
!''type'' !! description | !''type'' !! description | ||
Line 21: | Line 20: | ||
|} | |} | ||
;See also: [[Programmer_Guide/Command_Reference/EVAL/f0ac|f0ac]] | |||
;See also: [[Programmer_Guide/Command_Reference/EVAL/ | |||
[[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]] | [[Programmer_Guide/Command_Reference/EVAL#Functions|<function list>]] | ||
Revision as of 10:55, 11 April 2011
Compute zero crossing density.
- Usage
qinterp(x {type, {, sr}})
- x
- data vector (signal)
- type
- selects the type of result; 0 <= type <= 3 (default=0)
- sr
- sampling rate in Hz (default=1)
- Result
- The function counts the number of zero crossings nz of the function
x[i] = f(i)
. The returned result is a scalar depending on nz and the argument type.
type description 0 the number of zero crossing nz 1 the zero crossing density dz = nz / ( ncol(x) * sr)
(number of zero crossings / second)2 the average zero crossing frequenzy (in Hz) f = dz / 2 3 the average zero crossing periode length (in seconds) t = 2 / dz
- See also
- f0ac