You are here: Symbol Reference > MtxExprInt Namespace > Classes > VectorInt Record > public > Difference Method > VectorInt.Difference Method (Integer)
MtxVec VCL
ContentsIndex
PreviousUpNext
VectorInt.Difference Method (Integer)

The difference between two succesive vector elements.

Pascal
function Difference(Lag: Integer = 1): TVecInt; overload;

Calculate the difference for all calling vector elements. The following formula is used to calculate the difference: 

 

 

The Length of calling vector is automatically decremented by one.

Copyright (c) 1999-2025 by Dew Research. All rights reserved.
What do you think about this topic? Send feedback!