next up previous contents index
Next: cross Up: Data Manipulation Commands Previous: Data Manipulation Commands   Contents   Index


compose

The compose command is used to create vectors. It has two forms:

compose vecname param = value [...]
or

compose vecname values value [...]
Both forms of this command create a new vector called vecname. In the first form, the values in the vector are determined by the parameters given. In the second form, the given values are used to form the vector.

The possible parameters are:

start The value at which the vector should start
stop The value at which the vector should end
step The difference between successive elements
lin The number of points, linearly spaced
log The number of points, logarithmically spaced
dec The number of points per decade, log spaced
center Where to center the range of points
span The size of the range of points
gauss The number of points in the gaussian distribution
mean The mean value for the gaussian distribution
sd The standard deviation for the gaussian distribution
random The number of randomly selected points

In the first form of the command, at least one of lin, log, dec, gauss, or random should be specified, or each of start, stop, and step. For random, span defaults to 2.0, and center defaults to 0. For gauss, sd defaults to 1.0, and mean defaults to 0. The random number sequences can be reset by calling the seed command. The parameter start defaults to zero, unless implicitly set by other parameters. If start > stop, the order is reversed. Parameters start, stop, and step apply to lin (the default), log, and dec. Parameters center and span apply to random, and sd and mean apply to gauss.


next up previous contents index
Next: cross Up: Data Manipulation Commands Previous: Data Manipulation Commands   Contents   Index
Stephen R. Whiteley 2006-10-23