NDK_VARIANCE

int __stdcall NDK_VARIANCE ( double *  X,
size_t  N,
WORD  reserved,
double *  retVal 
)

Calculates the sample variance.

Returns
status code of the operation
Return values
NDK_SUCCESS Operation successful
NDK_FAILED Operation unsuccessful. See Macros for full list.
Parameters
[in] X is the input data sample (a one dimensional array).
[in] N is the number of observations in X.
[in] reserved This parameter is reserved and must be 1.
[out] retVal is the calculated variance value.
Remarks
1. The sample data may include observations with missing values (NaN)
Requirements
Header SFSDK.H
Library SFSDK.LIB
DLL SFSDK.DLL
Examples


   
Namespace:  NumXLAPI
Class:  SFSDK
Scope:  Public
Lifetime:  Static
int NDK_VARIANCE ( double[]  pData,
UInPtr  nSize,
short  argMenthod,
ref double  retVal 
)

Calculates the sample variance.

Return Value

a value from NDK_RETCODE enumeration for the status of the call. 

NDK_SUCCESS  operation successful
Error  Error Code
Parameters
[in] pData is the input data sample (a one dimensional array).
[in] nSize is the number of observations in pData.
[in] argMenthod This parameter is reserved and must be 1.
[out] retVal is the calculated variance value.
Remarks
1. The sample data may include observations with missing values (NaN)
Exceptions
Exception Type Condition
None N/A
Requirements
Namespace NumXLAPI
Class SFSDK
Scope Public
Lifetime Static
Package NumXLAPI.DLL
Examples

	
References
Hull, John C.; Options, Futures and Other DerivativesFinancial Times/ Prentice Hall (2011), ISBN 978-0132777421