CMatrix:Volume
The Volume method returns the sum of all matrix values.
vol = CMatrix:Volume() |
This method computes the sum of all CMatrix elements. If the matrix elements were to define a grid of height values, the sum of all members would be the volume under the matrix profile.
The following script fragment computes the volume of the CMatrix:
|
-- create a CMatrix |
|
-- setup a 5 x 7 matrix |
|
-- result: Vol = 35 |