SignalUtils.DCCrossingCount Method

Overload List

#SignatureDescription
1function DCCrossingCount(const Src: TVec; DC: Double; Negative: Boolean; Index: Integer; Len: Integer): Integer;Return the total count of zero crossings within Src starting at index to Index+Len.
2function DCCrossingCount(const Src: TVec; DC: Double; Index: Integer; Len: Integer): Integer;Return the number of DC crossings.

Overload 1: function DCCrossingCount(const Src: TVec; DC: Double; Negative: Boolean; Index: Integer; Len: Integer): Integer;

Return the total count of zero crossings within Src starting at index to Index+Len.

#NameTypeDescription
1SrcTVec
2DCDoublescalar
3NegativeBoolean
4IndexIntegerstart index
5LenIntegerelement count

Returns: Int32

Remarks:

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).

Overload 2: function DCCrossingCount(const Src: TVec; DC: Double; Index: Integer; Len: Integer): Integer;

Return the number of DC crossings.

#NameTypeDescription
1SrcTVec
2DCDoublescalar
3IndexIntegerstart index
4LenIntegerelement count

Returns: Int32

Remarks:

Return the total count of DC crossings within Src starting at index to Index+Len. If Len = -1 end the search at Src.Length.