編輯

共用方式為


WorksheetFunction.SumX2PY2(Object, Object) Method

Definition

Returns the sum of the sum of squares of corresponding values in two arrays. The sum of the sum of squares is a common term in many statistical calculations.

public:
 double SumX2PY2(System::Object ^ Arg1, System::Object ^ Arg2);
public double SumX2PY2 (object Arg1, object Arg2);
Public Function SumX2PY2 (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, SumX2PY2 returns the #N/A error value.

The equation for the sum of the sum of squares is:

Figure 1: Equation for the sum of the sum of squares

Applies to