WorksheetFunction.Covariance_S(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 sample covariance, the average of the products of deviations for each data point pair in two data sets.
public:
double Covariance_S(System::Object ^ Arg1, System::Object ^ Arg2);
public double Covariance_S (object Arg1, object Arg2);
Public Function Covariance_S (Arg1 As Object, Arg2 As Object) As Double
Parameters
- Arg1
- Object
Array1 - The first cell range of integers.
- Arg2
- Object
Array2 - The second cell range of integers.
Returns
Remarks
The arguments must either be numbers or be 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 array1 and array2 have different numbers of data points, Covariance_S returns the #N/A error value.
If either array1 or array2 is empty or contains only 1 data point each, Covariance_S returns the #DIV/0! error value.