Maptitude GISDK Help |
Constructs a cumulative vector in a new vector.
Added to Version 6.0/2012.
new_vec = CumulativeVector(vector vec[, array options])
Argument |
Contents |
vec |
The vector to be summed cumulatively |
A new vector with each element containing the sum of the elements up to and including that element in the input vector.
vec = Vector(10, "long", {{"Sequence", 1, 1}})
new_vec = CumulativeVector(vec)
ShowArray({vec, new_vec})
The options array is an optional argument.
Missing elements are treated as zero.
For more information on vectors, see Vectors.
Function |
Summary |
Copies an array to a vector |
|
Copies a vector to a new vector. |
|
Sorts the elements of a vector in ascending order |
|
Sorts an array of vectors in ascending order, based on the first vector |
|
Transposes an array of arrays, where element b[i][j] = a[j][i] |
|
Creates a vector |
|
Copies a vector to an array |
©2025 Caliper Corporation | www.caliper.com |