DewDSPMasterNET
DCCrossingCount Routines
Summary
Return the number of DC crossings.

Unit
SignalUtils

Declaration
Function DCCrossingCount(Src: TVec; DC: TSample; Index: integer = 0; Len: integer = -1): integer;

Description
Return the total count of DC crossings within Src starting at index to Index+Len. If Len = -1 end the search at Src.Length.
Declaration
Function DCCrossingCount(Src: TVec; DC: TSample; Negative: boolean; Index: integer = 0; Len: integer = -1): integer;

Description
Return the total count of zero crossings within Src starting at index to Index+Len. If Len = -1 end the search at Src.Length. Count DC crossings only in one way, from - to + (Negative = True) or from + to - (Negative = False).
Categories
Signal statistics

Copyright 2008 Dew Research
http://www.dewresearch.com