YAMP.ACorFunction.Function C# (CSharp) Method

Function() private method

private Function ( MatrixValue M ) : MatrixValue
M MatrixValue
return MatrixValue
        public MatrixValue Function(MatrixValue M)
        {
            if (M.Length > 1)
            {
                var nOffset = (Int32)(10 * Math.Log10(M.Length));

                if (nOffset < 0)
                {
                    nOffset = 0;
                }
                else if (nOffset >= M.Length)
                {
                    nOffset = M.Length - 1;
                }

                return YMath.CrossCorrelation(M, M, nOffset);
            }

            return new MatrixValue();
        }

Same methods

ACorFunction::Function ( MatrixValue M, ScalarValue nLag ) : MatrixValue
ACorFunction