NDK_HIST_BINS

int __stdcall NDK_HIST_BINS ( double *  pData,
size_t  nSize,
WORD  argMethod,
size_t *  retVal 
)

Returns the number of histogram bins using a given method.

Returns
status code of the operation
Return values
NDK_SUCCESS Operation successful
NDK_FAILED Operation unsuccessful. See SFMacros.h for more details.
See Also
NDK_HISTOGRAM()
Parameters
[in] pData is the input data series (one/two dimensional array).
[in] nSize is the number of elements in pData.
[in] argMethod is a switch to select the calculation method (1=Sturges's formula, 2=Square-root, 3=Scott's Choice, 4=Freedman-Diaconis choice, 5=Optimal (default)).
[out] retVal is the computed value.
Namespace:  NumXLAPI
Class:  SFSDK
Scope:  Public
Lifetime:  Static
int NDK_HIST_BINS ( double[]  pData,
UIntPtr  nSize,
short  argMethod,
ref UIntPtr   retVal 
)

Returns the number of histogram bins using a given method.

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 series (one/two dimensional array).
[in] nSize is the number of elements in pData.
[in] argMethod is a switch to select the calculation method (1=Sturges's formula, 2=Square-root, 3=Scott's Choice, 4=Freedman-Diaconis choice, 5=Optimal (default)).
[out] retVal is the computed value.
Examples

	
References
* Hamilton, J .D.; Time Series Analysis , Princeton University Press (1994), ISBN 0-691-04289-6
* Tsay, Ruey S.; Analysis of Financial Time Series John Wiley & SONS. (2005), ISBN 0-471-690740
* D. S.G. Pollock; Handbook of Time Series Analysis, Signal Processing, and Dynamics; Academic Press; Har/Cdr edition(Nov 17, 1999), ISBN: 125609906
* Box, Jenkins and Reisel; Time Series Analysis: Forecasting and Control; John Wiley & SONS.; 4th edition(Jun 30, 2008), ISBN: 470272848