NAME

threshold_vec - threshold elements in vector

PROTOTYPE

unitptr threshold_vec( int n, float fThreshold, unitptr uHost)

ARGUMENTS

int n
vector dimension
float fThreshold
initial threshold value
unitptr uHost
host unit

INTERFACE OF CREATED UNIT:

in_0[n]
(input field 0) input vector of n elements
in_1[1]
(input field 1) threshold value (initialized with fThreshold )
out_0[n]
(output field 0) vector with thresholded elements of input vector.

EXECUTION OF CREATED UNIT:

Compute vector of thresholded elements of input vector. The i-th output element is given by y[i]=x[i] if x[i]>threshold, 0 otherwise. The threshold value can be set at the second input field and is initialized with the value threshold passed to the constructor function.

   

SEE ALSO:

.min_val, .max_val, .min_vec, .max_vec

FILE

/local/homes/rhaschke/nst7/man/../o.linx86//../foldersrc/nst_vector.c