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

The difference between two succesive vector elements.

Pascal
function Difference(Lag: Integer = 1): TVec; 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!