1mlib_SignalAutoCorrel_S16(3mMeLdIiBa)Lib Library Funcmtliiobn_sSignalAutoCorrel_S16(3MLIB)
2
3
4

NAME

6       mlib_SignalAutoCorrel_S16, mlib_SignalAutoCorrel_S16S, mlib_SignalAuto‐
7       Correl_F32, mlib_SignalAutoCorrel_F32S - signal auto-correlation
8

SYNOPSIS

10       cc [ flag... ] file... -lmlib [ library... ]
11       #include <mlib.h>
12
13       mlib_status mlib_SignalAutoCorrel_S16(mlib_d64 *correl,
14            const mlib_s16 *src, mlib_s32 disp, mlib_s32 n);
15
16
17       mlib_status mlib_SignalAutoCorrel_S16S(mlib_d64 *correl,
18            const mlib_s16 *src, mlib_s32 disp, mlib_s32 n);
19
20
21       mlib_status mlib_SignalAutoCorrel_F32(mlib_d64 *correl,
22            const mlib_f32 *src, mlib_s32 disp, mlib_s32 n);
23
24
25       mlib_status mlib_SignalAutoCorrel_F32S(mlib_d64 *correl,
26            const mlib_f32 *src, mlib_s32 disp, mlib_s32 n);
27
28

DESCRIPTION

30       Each of these functions performs auto-correlation.
31
32
33       For monaural signals, the following equation is used:
34
35                       1    n-d-1
36         correl[0] = ----- * SUM (src[i] * src[i + d])
37                     n - d   i=0
38
39
40
41       For stereo signals, the following equation is used:
42
43                       1    n-d-1
44         correl[0] = ----- * SUM (src[2*i] * src[2*(i + d)])
45                     n - d   i=0
46
47                       1    n-d-1
48         correl[1] = ----- * SUM (src[2*i + 1] * src[2*(i + d) + 1])
49                     n - d   i=0
50
51
52
53       where d = disp.
54

PARAMETERS

56       Each of the functions takes the following arguments:
57
58       correl    Pointer to the auto-correlation array. In the stereo version,
59                 correl[0]  contains  the  auto-correlation  of channel 0, and
60                 correl[1] contains the auto-correlation of channel 1.
61
62
63       src       Source signal array.
64
65
66       disp      Displacement. 0 ≤ disp < n.
67
68
69       n         Number of samples in the source signal array.
70
71

RETURN VALUES

73       Each of the functions returns MLIB_SUCCESS if successful. Otherwise  it
74       returns MLIB_FAILURE.
75

ATTRIBUTES

77       See attributes(5) for descriptions of the following attributes:
78
79
80
81
82       ┌─────────────────────────────┬─────────────────────────────┐
83       │      ATTRIBUTE TYPE         │      ATTRIBUTE VALUE        │
84       ├─────────────────────────────┼─────────────────────────────┤
85       │Interface Stability          │Committed                    │
86       ├─────────────────────────────┼─────────────────────────────┤
87       │MT-Level                     │MT-Safe                      │
88       └─────────────────────────────┴─────────────────────────────┘
89

SEE ALSO

91       mlib_SignalCrossCorrel_S16(3MLIB), attributes(5)
92
93
94
95SunOS 5.11                        2 Mar 2007  mlib_SignalAutoCorrel_S16(3MLIB)
Impressum