1mlib_VectorDistance_U8_Sat(m3eMdLiIaBL)ib Library Funmcltiibo_nVsectorDistance_U8_Sat(3MLIB)
2
3
4

NAME

6       mlib_VectorDistance_U8_Sat, mlib_VectorDistance_S8_Sat, mlib_VectorDis‐
7       tance_S16_Sat, mlib_VectorDistance_S32_Sat - vector Euclidean distance
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       mlib_status mlib_VectorDistance_U8_Sat(mlib_d64 *z, const mlib_u8 *x,
14            const mlib_u8 *y, mlib_s32 n);
15
16
17       mlib_status mlib_VectorDistance_S8_Sat(mlib_d64 *z, const mlib_s8 *x,
18            const mlib_s8 *y, mlib_s32 n);
19
20
21       mlib_status mlib_VectorDistance_S16_Sat(mlib_d64 *z, const mlib_s16 *x,
22            const mlib_s16 *y, mlib_s32 n);
23
24
25       mlib_status mlib_VectorDistance_S32_Sat(mlib_d64 *z, const mlib_s32 *x,
26            const mlib_s32 *y, mlib_s32 n);
27
28

DESCRIPTION

30       Each of these functions computes the Euclidean  distances  between  two
31       vectors.
32
33
34       The following equation is used:
35
36                  n-1
37         z[0] = { SUM (x[i] - y[i])**2 }**0.5
38                  i=0
39
40

PARAMETERS

42       Each of the functions takes the following arguments:
43
44       z    Pointer to the distance between the two vectors.
45
46
47       x    Pointer to the first element of the first source vector.
48
49
50       y    Pointer to the first element of the second source vector.
51
52
53       n    Number of elements in the vectors.
54
55

RETURN VALUES

57       Each  of the functions returns MLIB_SUCCESS if successful. Otherwise it
58       returns MLIB_FAILURE.
59

ATTRIBUTES

61       See attributes(5) for descriptions of the following attributes:
62
63
64
65
66       ┌─────────────────────────────┬─────────────────────────────┐
67       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
68       ├─────────────────────────────┼─────────────────────────────┤
69       │Interface Stability          │Committed                    │
70       ├─────────────────────────────┼─────────────────────────────┤
71       │MT-Level                     │MT-Safe                      │
72       └─────────────────────────────┴─────────────────────────────┘
73

SEE ALSO

75       attributes(5)
76
77
78
79SunOS 5.11                        2 Mar 2007 mlib_VectorDistance_U8_Sat(3MLIB)
Impressum