The ArrayMath class is a utility class used to perform array computations.
| Method | Inherited | Description |
| new ArrayMath | (Self) | Create an ArrayMath object and initialize it with the given array. |
| add | (Self) | Add an array to the ArrayMath object. |
| add2 | (Self) | Add a number to every element of the ArrayMath object. |
| sub | (Self) | Subtract an array from the ArrayMath object. |
| sub2 | (Self) | Subtract a number from every element of the ArrayMath object. |
| mul | (Self) | Multiply an array to the ArrayMath object. |
| mul2 | (Self) | Multiply a number to every element of the ArrayMath object. |
| div | (Self) | Divide the ArrayMath object by the given array. |
| div2 | (Self) | Divide every element of the ArrayMath object by the given number. |
| delta | (Self) | Subtract each element of the ArrayMath object by an earlier element in the same ArrayMath object. |
| abs | (Self) | Replace each element of the ArrayMath object by its absolute value. |
| acc | (Self) | Replace each element of the ArrayMath object by the accumulated total of its previous element (including itself). |
| selectGTZ | (Self) | Select the elements of the ArrayMath object by checking if the elements of the given decisionArray is greater than zero. |
| selectGEZ | (Self) | Select the elements of the ArrayMath object by checking if the elements of the given decisionArray is greater than or equal to zero. |
| selectLTZ | (Self) | Select the elements of the ArrayMath object by checking if the elements of the given decisionArray is less than zero. |
| selectLEZ | (Self) | Select the elements of the ArrayMath object by checking if the elements of the given decisionArray is less than or equal to zero. |
| selectEQZ | (Self) | Select the elements of the ArrayMath object by checking if the elements of the given decisionArray is equal to zero. |
| selectNEZ | (Self) | Select the elements of the ArrayMath object by checking if the elements of the given decisionArray is not equal to zero. |
| selectStartOfHour | (Self) | Select the elements of the ArrayMath object that represents a different hour from the previous element. |
| selectStartOfDay | (Self) | Select the elements of the ArrayMath object that represents a different day from the previous element. |
| selectStartOfWeek | (Self) | Select the elements of the ArrayMath object that represents a different week from the previous element. |
| selectStartOfMonth | (Self) | Select the elements of the ArrayMath object that represents a different month from the previous element. |
| selectStartOfYear | (Self) | Select the elements of the ArrayMath object that represents a different year from the previous element. |
| trim | (Self) | Trim the ArrayMath object by keeping only some elements in the middle. |
| insert | (Self) | Insert the elements of an array to the ArrayMath object. |
| insert2 | (Self) | Insert some constant elements to the ArrayMath object. |
| replace | (Self) | Find elements that are equal to a given value and replace it with another value. |
| movAvg | (Self) | Replace each element of the ArrayMath object by its moving average. |
| expAvg | (Self) | Replace each element of the ArrayMath object by its exponential average. |
| movMed | (Self) | Replace each element of the ArrayMath object by its moving median. |
| movPercentile | (Self) | Replace each element of the ArrayMath object by its moving percentile. |
| movMax | (Self) | Replace each element of the ArrayMath object by its moving maximum. |
| movMin | (Self) | Replace each element of the ArrayMath object by its moving minimum. |
| movStdDev | (Self) | Replace each element of the ArrayMath object by its moving standard deviation. |
| movCorr | (Self) | Replace each element of the ArrayMath object by the moving correlation with another array or with itself. |
| lowess | (Self) | Fit a curve through the data points in the ArrayMath object using the LOWESS algorithm. |
| lowess2 | (Self) | Fit a curve through the data points in the ArrayMath object using the LOWESS algorithm, where the spacing of the data points is supplied by the given array. |
| result | (Self) | Get the content of the ArrayMath object as a normal array to be used in other ChartDirector API. |
| max | (Self) | Get the maximum value of the elements of the ArrayMath object. |
| min | (Self) | Get the minimum value of the elements of the ArrayMath object. |
| avg | (Self) | Get the average value of the elements of the ArrayMath object. |
| sum | (Self) | Get the total value of the elements of the ArrayMath object. |
| med | (Self) | Get the median value of the elements of the ArrayMath object. |
| percentile | (Self) | Get the required percentile value of the elements of the ArrayMath object. |
| maxIndex | (Self) | Get the index of the maximum value element of the ArrayMath object. |
| minIndex | (Self) | Get the index of the minimum value element of the ArrayMath object. |