# ShiftRegister

Implements a shift-register array, or data "stream", into which a cell's values are buffered after each event.

Note: After a reset, the first value that is read fills the shift-register.

## ShiftRegister Inputs

Parameters | Description
Event | Specifies the update event on which to read Value. This parameter must be a reference to one of the following: the Image data structure in cell A0 (containing the function) (default). a cell containing a Button function. Note: ShiftRegister buffers the state of the referenced value after that value is updated by any other function that depends on the specified Event.
Value | A reference to the cell containing the source data (-9999999 to 9999999; default = 0).
Number of Steps | Specifies the number of values in the function's internal shift-register array (1 to 5000; default = 10).
Reset | Forces the function to purge itself of previously read values. The first value read after Reset will effectively "fill" the shift register.
0 = OFF (default) | The function will continue to read in values to the data stream.
1 = ON | The function will purge all values from the data stream.

## ShiftRegister Outputs

Returns | A Delay data structure containing statistics for the specified Value over an interval from Reset to current.
Results | When the function is initially inserted into a cell, a result table is created in the spreadsheet with the following Clocked Data Storage Vision Data Access Functions:
Label | Function | Description
Last | GetValue(Delay, Index) | The last value contained in the structure.
Mean | GetMean(Delay) | The mean of all the values in the structure.
SDev | GetSDev(Delay) | The standard deviation of all the values in the structure.
Min | GetMin(Delay) | The smallest value contained in the structure.
Max | GetMax(Delay) | The largest value contained in the structure.