WorksheetFunction.SumXMY2(Object, Object) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Returns the sum of squares of differences of corresponding values in two arrays.
public:
double SumXMY2(System::Object ^ Arg1, System::Object ^ Arg2);
public double SumXMY2 (object Arg1, object Arg2);
Public Function SumXMY2 (Arg1 As Object, Arg2 As Object) As Double
Parameters
- Arg1
- Object
Array_x - the first array or range of values.
- Arg2
- Object
Array_y - the second array or range of values.
Returns
Remarks
The arguments should be either numbers or names, arrays, or references that contain numbers.
If an array or reference argument contains text, logical values, or empty cells, those values are ignored; however, cells with the value zero are included.
If array_x and array_y have a different number of values, SumXMY2 returns the #N/A error value.
The equation for the sum of squared differences is:
Figure 1: Equation for the sum of squared differences