NAME

corrupt_vec -- make some vector elements undefined

PROTOTYPE

unitptr corrupt_vec( int iDim, float fProb, unitptr uHost)

ARGUMENTS

int iDim
vector dimension
float fProb
probability for each vector element to become undefined
unitptr uHost
host unit

RETURN VALUE:

A pointer to the created unit or NULL in the case of an error.

INTERFACE OF CREATED UNIT:

X_in[iDim]:
(input field 0) input vector
CTL_in[1]:
(input field 0) control field probability of a value to remain unchanged (note that this is 1-fProb !). However, a value of 0 will not replace all elements by NaN, instead, it will freeze the unit in its current state.
X_out[iDim]:
(output field 0) output vector

EXECUTION OF CREATED UNIT:

Creates an output vector which is a copy of the input vector, but with each element replaced with a probability of fProb by the non-value NaN that is used to indicate a `missing value''.

FILE

/amnt/loge/users/nistaff02/nistaff/rhaschke/nst7/man/../o.linux//../foldersrc/nst_util.c