StandardizeArray (Function)

image\trumpet2.gif Disclaimer

The StandardizeArray function returns a normalized value based on a specified number of standard deviations and a mean average.

Syntax

StandardizeArray(PriceArray, Size, NumDevs)

Returns (Double)

A numeric value containing a normalized value from an array, as characterized by the array-based mean and standard deviation

Parameters

Name

Type

Description

PriceArray

Numeric

Specifies the name of a numeric array containing values upon which the sum of squares of deviations is calculated.

Size

Numeric

Sets the number of data elements (size) in the array to evaluate.

NumDevs

Numeric

Sets the number of standard deviations to use.

Remarks

The mean and standard deviation used in the calculation of the standardized value are based on values in the specified price array.

The value for the Size input parameter should always be a whole number greater than 0 and is typically equal to the number of data elements in the array.

The StandardizeArray function only works with one-dimensional arrays.  All array-based referencing begins with array element 1.

Example

Assigns to Value1 the Skew factor of the specified named array MyArray with 10 elements.

Array: MyArray[10](0);

{… add EL statements here to assign price values to array elements... }

Value1 = StandardizeArray(MyArray,10);