Syntax: naav(inputdata [, center = VAL] [, lbound = VAL] [, ubound = VAL] [, independent = 0/1] [, anormalize = 0/1] [, steps = INT] [, backlash = INT] [, threshold = FLOAT] [, threshrepeat = INT] [, searchwidth = INT])
This function is intended for normalizing data in which it is important to maintain a "center" or other reference point. For example, audio or other waveforms in which a conventional normalization will introduce a "DC bias".
The center parameter controls the value which separates the lower and upper portions of the data. If it is not specified, it defaults to 0.0 (in other words, it defaults to operating as a "normalize about zero" function).
The lbound and ubound parameters control the lower and upper bounds which the normalized data should occupy. If these are not specified, they default to -1.0 and 1.0, respectively.
The independent flag controls whether or not the two sets of data (above and below the center value) are normalized to the same scale (0) or scaled independently (1).
The optional anormalize flag controls whether or not an aggressive normalization should be performed. If it is not specified, it defaults to 0.
The optional steps', backlash, threshold, threshrepeat, and searchwidth parameters are described in the anormalize documentation, and are only used if anormalize is set to 1.