| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (21 out of 25)

Data Shift


The Data Shift block delays its input by a certain number of inputs; it waits to pass an input value until it has received more data. You specify how many more input values it must receive with the Sample Size attribute.

Specifying How to Delay Values

The block buffers its inputs in a first-in first-out queue of length Sample Size. When it receives a value, it deletes the value at the beginning of the queue and passes that value.

If the block does not have a value that satisfies its conditions, it passes no value. For example, when the block does not have Sample Size points yet, it outputs nothing.

Configuring

This is the configuration panel for the Data Shift block.


Attribute Description
Sample Size
The number of points the block must receive before passing a value.
Value on Initialization
See "Specifying an Initial Data Value".
Erase History When Reset
See "Specifying What Happens to History Upon Reset".
Require Full History
See "Specifying What to Do With Partial History".

Example

This table shows sample input and output for a Data Shift block with a Sample Size of 3. The first row is the values it received. The second row is the values it passed on.

Input
1.3
2.3
4.5
5.0
7.2
Output



1.3
2.3

See Also

For more information on how to use this block, see the sections below.

Click here for more information...
Basic Block Behavior
Data Delay

| Prev | Next | Start of Chapter | End of Chapter | Contents | Index | (21 out of 25)

Copyright © 1996, Gensym Corporation, Inc.