int __stdcall NDK_SCALE | ( | double * | X, |
size_t | N, | ||
double | K | ||
) |
Returns an array of cells for the scaled time series.
- Returns
- status code of the operation
- Return values
-
NDK_SUCCESS Operation successful NDK_FAILED Operation unsuccessful. See Macros for full list.
- Parameters
-
[in,out] X is the univariate time series data (a one dimensional array). [in] N is the number of observations in X. [in] K is the scalar/multiplier value.
- Remarks
-
- The time series is homogeneous or equally spaced.
- The scale operator is described as: \[ \left[z_t\right] =\left[x_t\right] \times \alpha \] Where:
- \(\left[z_t\right]\) is the scaled time series.
- \(\left[x_t\right]\) is the first time series.
- \(\alpha\) is a constant value.
- The returned array has the same size and time order as the first input time series.
- Requirements
-
Header SFSDK.H Library SFSDK.LIB DLL SFSDK.DLL
- Examples
-
Namespace: | NumXLAPI |
Class: | SFSDK |
Scope: | Public |
Lifetime: | Static |
int NDK_SCALE | ( | double[] | data, |
UIntPtr | nSize, | ||
double | factor | ||
) |
Returns an array of cells for the scaled time series.
- Returns
- status code of the operation
- Return values
-
NDK_SUCCESS Operation successful NDK_FAILED Operation unsuccessful. See Macros for full list.
- Parameters
-
[in,out] data is the univariate time series data (a one dimensional array). [in] nSize is the number of observations in data. [in] factor is the scalar/multiplier value.
- Remarks
-
- The time series is homogeneous or equally spaced.
- The scale operator is described as: \[ \left[z_t\right] =\left[x_t\right] \times \alpha \] Where:
- \(\left[z_t\right]\) is the scaled time series.
- \(\left[x_t\right]\) is the first time series.
- \(\alpha\) is a constant value.
- The returned array has the same size and time order as the first input time series.
- Exceptions
-
Exception Type Condition None N/A
- Requirements
-
Namespace NumXLAPI Class SFSDK Scope Public Lifetime Static Package NumXLAPI.DLL
- 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