You are here: Symbol Reference > MtxVec Namespace > Classes > TVec Class > public > TVec.GroupSum Method
MtxVec VCL
ContentsIndex
PreviousUpNext
TVec.GroupSum Method

Sums items from Data with matching corresponding indexes from Bins and places result in self.

Pascal
function GroupSum(const Bins: TMtxVecInt; const Data: TMtxVec; const BinsMax: integer = -1): TVec; overload;

The size of self is set to BinsMax+1 provided that sufficient memory is available. BinsMax with default value of -1 indicates that Bins.Max call is to be made internally. The routine does not perform additional range checking, if BinsMax is provided explicitely (memory overwrite is possible).

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