NAME

dif_len - create unit that computes vector distance

PROTOTYPE

unitptr dif_len( int n, unitptr dest)

ARGUMENTS

int n
dimensionality of input vectors
unitptr dest
host unit for newly created instance

RETURN VALUE:

unitptr u
pointer to newly created unit

INTERFACE OF CREATED UNIT:

X_in[n]:
(input field 0) first input vector
Y_in[n]:
(input field 1) second input vector
X_out[1]:
(output field 0) scalar output value

EXECUTION OF CREATED UNIT:

Computes the euclidean difference X_out=||X_in-Y_in||.

DESCRIPTION:

Creates a unit with two input fields of n pins and one scalar output field. The created unit becomes a subunit of unit dest. If n is specified as a negative integer, the inputs fields will be created as packed float vector fields with ABS(n) pins.

FILE:

nst_math

SEE ALSO:

euc_len

FILE

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