Calculate the sum of the squares of the elements in a numeric array.
This function calculates the sum of the squares of all or a subset of the elements in the numeric src array.
- Warning
- This function requires the enhanced NBC/NXC firmware.
- Parameters
-
src | The source numeric array. |
idx | The index of the start of the array subset to process. Pass NA to start with the first element. |
len | The number of elements to include in the calculation. Pass NA to include the rest of the elements in the src array (from idx to the end of the array). |
- Returns
- The sum of the squares of len elements from the src numeric array (starting from idx).
- Warning
- You cannot use NXC expressions with this function
- Examples:
- ex_ArraySumSqr.nxc.