{
  "$schema": "https://ambiqai.github.io/helia-ui/schema/reference-model-1.json",
  "generatedFrom": {
    "sourceCommit": "4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1",
    "tool": "doxyref",
    "version": "1.17.0"
  },
  "language": "c",
  "modules": [
    {
      "description": "Window statistics in one traversal, f32.\n\nOne call reads a window of N f32 samples once and returns its count, the sum and the sum of squares of the deviations from a shift, its minimum and its maximum. Inline helpers derive the sum, sum of squares, mean, population variance, sample variance and root mean square (RMS) from that result, so that one call serves every one of them.\n\nThree entry points share one contract:\n\n| Entry point | Implementation |\n| --- | --- |\n| `helia_window_stats_f32()` | Helium (MVE) when the library is compiled for a target with floating-point MVE (`__ARM_FEATURE_MVE & 2`) and ARM_MATH_AUTOVECTORIZE is not defined, optimized scalar otherwise |\n| `helia_window_stats_scalar_f32()` | optimized scalar, on every target |\n| `helia_window_stats_reference_f32()` | reference: sequential, accumulates in double precision (the test oracle) |\n\nThe preprocessor fixes the implementation behind `helia_window_stats_f32()` when the library is compiled; no entry point chooses among implementations at run time, so an application that calls one entry point links one implementation.\n\nThe sections below state the contract fields listed in `helia/CONTRACTS.md`.\n\n:::note[Semantic operation and profile]\nInput: a pointer to N f32 samples x[0..N-1] and N. Output: one `helia_window_stats_result_f32` holding\n\n- count = N;\n- shift c = x[0] (+0.0f when N = 0);\n- sum_dev = sum over i of (x[i] - c);\n- sum_sq_dev = sum over i of (x[i] - c)^2;\n- minimum and maximum of the samples. The raw sum is not accumulated: it is derived, as are the other statistics. The helpers derive sum = N*c + sum_dev, mean = c + sum_dev/N, population variance (sum_sq_dev - sum_dev^2/N)/N, sample variance (sum_sq_dev - sum_dev^2/N)/(N-1), RMS = sqrt(population variance + mean^2) and sum of squares = N*(population variance + mean^2). Supported: 0 <= N <= 2^24. The entry points do not check N (the Python binding does): for N > 2^24 they read the N samples and return ARM_MATH_SUCCESS with count = N, but the helpers convert count to f32, which rounds an N that f32 cannot represent, and the error bounds below do not hold.\n- N = 0: count 0, shift, sum_dev and sum_sq_dev +0.0f, minimum +infinity, maximum -infinity; sum and sum of squares are +0.0f, and mean, variances and RMS are NaN.\n- N = 1: sum_dev and sum_sq_dev +0.0f, minimum = maximum = x[0]; the population variance is +0.0f and the sample variance is NaN (0/0). CMSIS-DSP's arm_var_f32() returns 0 for N <= 1 instead.\n\n:::\n\n:::note[Provider identity]\nProvider: heliaDSP. The operation was added in heliaDSP 2.1.0. The release is identified at compile time by HELIA_DSP_VERSION_MAJOR, HELIA_DSP_VERSION_MINOR and HELIA_DSP_VERSION_PATCH, which the `helia_dsp` target defines. Entry points: `helia_window_stats_f32()`, `helia_window_stats_scalar_f32()`, `helia_window_stats_reference_f32()`.\n\n:::\n\n:::note[C and build requirements]\nInclude `helia/helia_window_stats.h` and link the CMake target `helia_dsp` (alias `nsx::helia_dsp`; under Zephyr, the `helia-dsp` module with `CONFIG_HELIA_DSP=y`), which supplies the CMSIS-DSP provider `CMSISDSP` for `arm_math_types.h`. The helpers call sqrtf(); the optimized scalar implementation calls fmaf(). The library compiles that implementation with -fno-math-errno, so that ATfE 22.1.0 and GCC 14.x emit fmaf() as one VFMA.F32 instruction for Cortex-M55 and Cortex-M4; on a target without a fused multiply-add instruction (a core without an FPU, or an x86-64 host compiled without FMA) it is a call to the C library's fmaf(). In Cortex-M55 application code compiled at -O2 without -fno-math-errno, GCC 14.x keeps a call to sqrtf() and emits fmaf() as VFMA.F32, ATfE 22.1.0 with its newlib or llvmlibc configuration keeps calls to both, and ATfE 22.1.0 with its default picolibc configuration keeps neither. The `helia_dsp` target links libm on a host when a link of fmaf() and sqrtf() needs it, and in a bare-metal build under GCC and ATfE, whose C libraries all ship a libm.a; not under Arm Compiler, whose C library has none. The implementation behind `helia_window_stats_f32()` is Helium when the library is compiled with `__ARM_FEATURE_MVE & 2` and without ARM_MATH_AUTOVECTORIZE (CMake `AUTOVECTORIZE=ON` defines it); no entry point depends on ARM_MATH_ROUNDING or ARM_MATH_LOOPUNROLL. The library compiles these sources without fast-math and without floating-point contraction, and the reference and scalar sources without auto-vectorization, whatever flags the application uses. The declarations and the result layout depend on no build option.\n\n:::\n\n:::note[Data requirements]\n- The samples need the natural alignment of float (4 bytes); no padding or capacity beyond N elements is required.\n- No entry point reads before x[0] or after x[N-1]: the Helium implementation loads a partial last block with a predicated load.\n- The samples are not modified. The result must not overlap the samples.\n- The buffers may be in any Normal memory that the core reads with ordinary and MVE loads; cycle counts depend on the placement.\n\n:::\n\n:::note[Storage]\nNo scratch buffer and no persistent state: each call is independent, and no entry point allocates memory, keeps a pointer after it returns, or uses mutable static state. Stack use per call is stated at each entry point: the compilers' static frame of the function and the kernel it branches to (library built at -O3), and the use measured on the Apollo510 EVB by painting below the stack pointer over N = 52 to 1500, which includes the measuring call's overhead. No entry point recurses or uses stack in proportion to N; the reference also calls the C library's double-precision arithmetic routines on targets without a double-precision FPU.\n\n:::\n\n:::note[Behaviour: status]\nEach entry point returns ARM_MATH_SUCCESS, or ARM_MATH_ARGUMENT_ERROR without writing the result when `pSrc` or `pResult` is NULL. No other value is returned.\n\n:::\n\n:::note[Behaviour: accumulation order]\nLet k = ceil(N/4) and lane j (j = 0..3) be the samples x[i] with i mod 4 = j. Every non-reference entry point forms d[i] = x[i] - c in f32 and keeps four lane partial sums of d[i], and four of d[i]^2, each starting at +0.0f and taking its samples in increasing i; d[i]^2 is added by a fused multiply-add (one rounding for the product and the addition). The Helium implementation uses VFMA, and the optimized scalar one fmaf(), which is one VFMA.F32 where the target has it (C and build requirements, above); where fmaf() is the C library's routine, one rounding, and with it the scalar implementation's error bounds, assume that the routine is correctly rounded. newlib's fmaf() for cores without an FPU, as shipped with GCC 14.x, is not: it computes in double precision and rounds twice. A last block of fewer than four samples is folded into lanes 0, 1 and 2 in the same way. The four partial sums are then added once, as (lane0 + lane1) + (lane2 + lane3). The Helium implementation holds the four lanes in one vector; the optimized scalar implementation holds them in four scalar accumulators and performs the same operations in the same order, so outside subnormal values, and with FPSCR.RMode at round to nearest (below), the two return identical results. The reference forms the same quantities in double precision, sequentially in increasing i, and rounds each to f32 once at the end. The order of the minimum and maximum does not affect their value.\n\n:::\n\n:::note[Behaviour: error bounds]\nNotation: u = 2^-24; gamma(m) = m*u / (1 - m*u); A = sum of |x[i] - c|; Q = sum of (x[i] - c)^2; S = sum_dev and P = S^2/N in exact arithmetic; eta = 2^-126 (FLT_MIN). The bounds hold for finite samples, 1 <= N <= 2^24, and inputs whose exact A, Q and N*|c| + |sum| are below FLT_MAX / 2; the bounds of the mean square, RMS and sum of squares also need the exact sum of the squared samples, N*T, below FLT_MAX / 2. The variance helpers form sum_dev^2/N as (sum_dev/N)*sum_dev, which by the Cauchy-Schwarz inequality (S^2/N <= Q) stays finite wherever Q does; sum_dev*sum_dev can overflow there, as for x = [0, 2^62, 2^62, 2^62, 2^62]. Against the exact values, a non-reference entry point satisfies\n\n- |sum_dev - S| <= E_S = gamma(k+3)*A + F_S,\n- |sum_sq_dev - Q| <= E_Q = gamma(k+4)*Q + F_Q,\n- minimum and maximum are exact, apart from the flush term below; and the reference satisfies the same with E_S = gamma(2)*A and E_Q = gamma(2)*Q and no flush term. F_S = F_Q = 0 for the scalar and reference implementations with FPSCR.FZ clear (see the subnormal paragraph below); for the Helium implementation F_S = 5*N*eta and F_Q = (6*A + 5*N)*eta. The helpers, evaluated in IEEE f32 arithmetic on such a result, satisfy, with m the exact mean, v and v1 the exact population and sample variances, T = v + m^2 and r = sqrt(T):\n- sum: E_S*(1+u) + gamma(2)*(N*|c| + |N*m|);\n- mean: B_m = (E_S*(1+u)^2 + u*(1+u)*A)/N + u*|m|;\n- population variance: B_v = E_1*(1+u)^2/N + gamma(2)*v, and sample variance E_1*(1+u)^2/(N-1) + gamma(2)*v1, where E_1 = E_Q + (2*A*E_S + E_S^2)*(1+gamma(2))/N + gamma(2)*P;\n- mean square: B_T = (B_v + B_m*(2*|m| + B_m) + u*(|m| + B_m)^2)*(1+u)\n  \n  - u*T; RMS: D + u*(r + D) with D = min(sqrt(B_T), B_T/r); sum of squares: N*(B_T*(1+u) + u*T). Results in the subnormal range carry an absolute rounding error of up to lambda = 2^-150 per rounded product, quotient or conversion, which the formulas above omit: E_Q of a non-reference entry point gains 2*N*lambda, E_S and E_Q of the reference gain lambda each, and the bounds of the sum, mean, E_1, population and sample variance, mean square and sum of squares gain lambda, 2*lambda, 3*lambda, lambda, lambda, 2*lambda and lambda. An entry point and the reference therefore differ by at most the sum of their two bounds; for sum_dev that is gamma(k+5)*A + F_S and for sum_sq_dev gamma(k+6)*Q + F_Q. To first order the population variance of a non-reference entry point has relative error at most (3k + 14)*u*(1 + (m - c)^2/v), and since c is one of the samples, (m - c)^2 <= (N - 1)*v: the error does not grow with the ratio of the mean to the spread, which a sum of raw squares (one pass, no shift) does. The bounds assume the helpers are compiled without fast-math.\n\n:::\n\n:::note[Behaviour: non-finite values, signed zeros and subnormals]\n- minimum and maximum follow IEEE 754-2008 minNum and maxNum (Arm VMINNM, VMAXNM): a quiet NaN sample is ignored, the result is NaN only when every sample is a quiet NaN (a signaling NaN sample is outside the qualified domain), an infinity is an ordinary value, and -0 orders below +0, so a window whose least value is zero has minimum -0 if it holds a -0. Every entry point returns the same minimum and maximum, apart from the subnormal case below.\n- If a sample is NaN or infinite, sum_dev or sum_sq_dev is NaN or infinite in every entry point (which of the two is not specified), and so are the mean and the variances. No other result is specified for such inputs, nor for inputs whose sums overflow.\n- Helium floating-point instructions flush subnormal operands and results to zero whatever FPSCR.FZ selects; the scalar implementations keep subnormals unless FPSCR.FZ is set. On the Helium path a subnormal sample therefore enters every statistic as a zero of its sign, a subnormal minimum or maximum is returned as that zero, and the sums differ by at most F_S and F_Q above.\n- Helium floating-point instructions also round to nearest whatever FPSCR.RMode selects, while the scalar implementations and the reference follow FPSCR.RMode. The error bounds above, the equality of the Helium and scalar results and the signed-zero results below hold with FPSCR.RMode at round to nearest, its reset value; under another rounding mode no result but the minimum and maximum is specified. The error bounds also need FPSCR.FZ clear for the scalar implementations, the reference and the helpers, which run in the caller's scalar code: the flush terms F_S and F_Q are zero, and the absolute error lambda of a subnormal result holds, only where scalar floating-point instructions keep subnormal operands and results.\n- Signed zero, with FPSCR.RMode at round to nearest: every sum starts at +0.0f and x[i] - c of two zeros is a zero, so for a window whose samples are all zeros of either sign, sum_dev and sum_sq_dev are +0.0f from every entry point, as are the sum, mean, population variance, sum of squares and RMS the helpers derive, and for N >= 2 the sample variance. The minimum is -0.0f if any sample is -0.0f and the maximum +0.0f if any sample is +0.0f, as stated above. In any other window a -0.0f sample gives every result but the minimum and maximum that a +0.0f sample in its place would give, except the mean when that sample is x[0], the shift c, and sum_dev/N is -0 (sum_dev negative and |sum_dev|/N at most 2^-150): the mean c + sum_dev/N is then c, -0.0f where a +0.0f shift gives +0.0f. Examples are [c, -0x1p-149f], and N = 2^24 with x[1] = -2^-126 and every other sample after x[0] +0.0f. The Helium path flushes the subnormal sample of the first example, so there its sum_dev and both means are +0.0f. For a window in which a partial sum of the Helium path is subnormal and is flushed, the sign of a zero sum_dev is not specified.\n\n:::\n\n:::note[Cycles]\nLoop counts and branches of the Helium kernel depend on N only. The optimized scalar kernel computes the minimum and maximum with `__builtin_fminf()` and `__builtin_fmaxf()` when `__arm__`, `__ARM_FP` and `__ARM_ARCH >= 8` are defined (Armv8-M with an FPU, such as Cortex-M55, where ATfE 22.1.0 and GCC 14.x emit VMINNM and VMAXNM), and its loop counts and branches then depend on N only. Otherwise it computes them with comparisons and branches, so its cycles also depend on the order of the sample values: on Armv7-M (Cortex-M4), on an Armv7E-M core with FPv5 (Cortex-M7, `__ARM_ARCH` 7) although its FPU has VMINNM and VMAXNM, and on a host. The Apollo510 cycle counts were measured with one input per window size; whether they vary with the data is not measured.\n\n:::\n\n:::note[Evidence]\nThe tests in `helia/tests/stats/` check every entry point against the reference within these bounds, and the reference against a NumPy float64 model, on the host (also under AddressSanitizer and UndefinedBehaviorSanitizer, and with the Helium kernel on a lane model of the intrinsics) and on the Corstone-300 model with MPU guards on both sides of every buffer (`tools/qualification/build.py`). The release-qualification workflow runs the host tests; no hosted workflow runs the Corstone-300 model (`--fvp`), so the Helium kernel compiled for Cortex-M55 runs only in a local model run, which CI does not gate; the host's lane-model test runs its logic. Apollo510 EVB cycles and flash under ATfE 22.1.0 and GCC 14.2.1 are in the documentation's measurements guide; stack per entry point is stated at each declaration. The operation was admitted for physiokit (mean, sample standard deviation, RMS), ppg-codec-demo (population variance of 320 samples), compressionKIT's RVQ firmware (sums at 320, 512 and 1500 samples) and imu-kit through heliaML (52 samples by 6 channels).\n\n:::",
      "name": "helia_window_stats.h",
      "path": "heliaDSP.helia_window_stats",
      "submodules": [],
      "summary": "Window statistics in one traversal, f32.",
      "symbols": [
        {
          "description": "Statistics of one window, as accumulated in one traversal.\n\nThe layout is the same in every build configuration.",
          "examples": [],
          "id": "helia_window_stats_result_f32",
          "kind": "struct",
          "language": "c",
          "members": [
            {
              "description": "N, the number of samples.",
              "examples": [],
              "id": "helia_window_stats_result_f32::count",
              "kind": "attribute",
              "language": "c",
              "members": [],
              "name": "count",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "uint32_t count",
              "source": {
                "line": 280,
                "path": "helia/include/helia/helia_window_stats.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L280"
              },
              "summary": "N, the number of samples."
            },
            {
              "description": "c = x[0], or +0.0f when N = 0.",
              "examples": [],
              "id": "helia_window_stats_result_f32::shift",
              "kind": "attribute",
              "language": "c",
              "members": [],
              "name": "shift",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "float32_t shift",
              "source": {
                "line": 281,
                "path": "helia/include/helia/helia_window_stats.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L281"
              },
              "summary": "c = x[0], or +0.0f when N = 0."
            },
            {
              "description": "Sum of x[i] - c.",
              "examples": [],
              "id": "helia_window_stats_result_f32::sum_dev",
              "kind": "attribute",
              "language": "c",
              "members": [],
              "name": "sum_dev",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "float32_t sum_dev",
              "source": {
                "line": 282,
                "path": "helia/include/helia/helia_window_stats.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L282"
              },
              "summary": "Sum of x[i] - c."
            },
            {
              "description": "Sum of (x[i] - c)^2.",
              "examples": [],
              "id": "helia_window_stats_result_f32::sum_sq_dev",
              "kind": "attribute",
              "language": "c",
              "members": [],
              "name": "sum_sq_dev",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "float32_t sum_sq_dev",
              "source": {
                "line": 283,
                "path": "helia/include/helia/helia_window_stats.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L283"
              },
              "summary": "Sum of (x[i] - c)^2."
            },
            {
              "description": "Least sample (minNum); +infinity when N = 0.",
              "examples": [],
              "id": "helia_window_stats_result_f32::minimum",
              "kind": "attribute",
              "language": "c",
              "members": [],
              "name": "minimum",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "float32_t minimum",
              "source": {
                "line": 284,
                "path": "helia/include/helia/helia_window_stats.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L284"
              },
              "summary": "Least sample (minNum); +infinity when N = 0."
            },
            {
              "description": "Greatest sample (maxNum); -infinity when N = 0.",
              "examples": [],
              "id": "helia_window_stats_result_f32::maximum",
              "kind": "attribute",
              "language": "c",
              "members": [],
              "name": "maximum",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "float32_t maximum",
              "source": {
                "line": 285,
                "path": "helia/include/helia/helia_window_stats.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L285"
              },
              "summary": "Greatest sample (maxNum); -infinity when N = 0."
            }
          ],
          "name": "helia_window_stats_result_f32",
          "params": [],
          "raises": [],
          "returns": [],
          "signature": "struct helia_window_stats_result_f32",
          "source": {
            "line": 278,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L278"
          },
          "summary": "Statistics of one window, as accumulated in one traversal."
        },
        {
          "description": "Window statistics: Helium implementation on targets with floating-point MVE, unless the library is built with ARM_MATH_AUTOVECTORIZE (CMake AUTOVECTORIZE=ON), optimized scalar implementation otherwise.\n\nStack: static frame 72 bytes (ATfE 22.1.0), 44 bytes (GCC 14.2.1); measured 120 and 100 bytes.",
          "examples": [],
          "id": "helia_window_stats_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_f32",
          "params": [
            {
              "description": "N samples; not modified.",
              "direction": "in",
              "name": "pSrc",
              "type": "const float32_t *"
            },
            {
              "description": "N, at most 2^24.",
              "direction": "in",
              "name": "blockSize",
              "type": "uint32_t"
            },
            {
              "description": "The statistics.",
              "direction": "out",
              "name": "pResult",
              "type": "helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [
            {
              "description": "ARM_MATH_SUCCESS, or ARM_MATH_ARGUMENT_ERROR without writing `pResult` when `pSrc` or `pResult` is NULL."
            }
          ],
          "signature": "arm_status helia_window_stats_f32(const float32_t *pSrc, uint32_t blockSize, helia_window_stats_result_f32 *pResult)",
          "source": {
            "line": 303,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L303"
          },
          "summary": "Window statistics: Helium implementation on targets with floating-point MVE, unless the library is built with ARMMATHAUTOVECTORIZE (CMake AUTOVECTORIZE=ON), op…"
        },
        {
          "description": "Window statistics, optimized scalar implementation on every target.\n\nSame contract as `helia_window_stats_f32()`, and the same operations in the same order as its Helium implementation.\n\nStack: static frame 64 bytes (ATfE 22.1.0), 40 bytes (GCC 14.2.1); measured 112 and 96 bytes.",
          "examples": [],
          "id": "helia_window_stats_scalar_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_scalar_f32",
          "params": [
            {
              "description": "",
              "name": "pSrc",
              "type": "const float32_t *"
            },
            {
              "description": "",
              "name": "blockSize",
              "type": "uint32_t"
            },
            {
              "description": "",
              "name": "pResult",
              "type": "helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [],
          "signature": "arm_status helia_window_stats_scalar_f32(\n    const float32_t *pSrc,\n    uint32_t blockSize,\n    helia_window_stats_result_f32 *pResult\n)",
          "source": {
            "line": 316,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L316"
          },
          "summary": "Window statistics, optimized scalar implementation on every target."
        },
        {
          "description": "Window statistics, reference implementation.\n\nSame contract as `helia_window_stats_f32()`, with the reference's accumulation order and error bounds. Sequential, in double precision, and written for review rather than speed; the other entry points are tested against it.\n\nStack: static frame 88 bytes (ATfE 22.1.0), 0 bytes (GCC 14.2.1), plus the double-precision arithmetic routines it calls; measured 136 and 64 bytes.",
          "examples": [],
          "id": "helia_window_stats_reference_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_reference_f32",
          "params": [
            {
              "description": "",
              "name": "pSrc",
              "type": "const float32_t *"
            },
            {
              "description": "",
              "name": "blockSize",
              "type": "uint32_t"
            },
            {
              "description": "",
              "name": "pResult",
              "type": "helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [],
          "signature": "arm_status helia_window_stats_reference_f32(\n    const float32_t *pSrc,\n    uint32_t blockSize,\n    helia_window_stats_result_f32 *pResult\n)",
          "source": {
            "line": 332,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L332"
          },
          "summary": "Window statistics, reference implementation."
        },
        {
          "description": "Sum of the samples, N*c + sum_dev; +0.0f when N = 0.",
          "examples": [],
          "id": "helia_window_stats_sum_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_sum_f32",
          "params": [
            {
              "description": "",
              "name": "s",
              "type": "const helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [],
          "signature": "static float32_t helia_window_stats_sum_f32(const helia_window_stats_result_f32 *s)",
          "source": {
            "line": 339,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L339"
          },
          "summary": "Sum of the samples, Nc + sumdev; +0.0f when N = 0."
        },
        {
          "description": "Mean, c + sum_dev/N; NaN when N = 0.",
          "examples": [],
          "id": "helia_window_stats_mean_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_mean_f32",
          "params": [
            {
              "description": "",
              "name": "s",
              "type": "const helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [],
          "signature": "static float32_t helia_window_stats_mean_f32(const helia_window_stats_result_f32 *s)",
          "source": {
            "line": 347,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L347"
          },
          "summary": "Mean, c + sumdev/N; NaN when N = 0."
        },
        {
          "description": "",
          "examples": [],
          "id": "helia_window_stats_centered_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_centered_f32",
          "params": [
            {
              "description": "",
              "name": "s",
              "type": "const helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [],
          "signature": "static float32_t helia_window_stats_centered_f32(const helia_window_stats_result_f32 *s)",
          "source": {
            "line": 356,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L356"
          },
          "summary": ""
        },
        {
          "description": "Population variance (divisor N); NaN when N = 0.",
          "examples": [],
          "id": "helia_window_stats_population_variance_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_population_variance_f32",
          "params": [
            {
              "description": "",
              "name": "s",
              "type": "const helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [],
          "signature": "static float32_t helia_window_stats_population_variance_f32(const helia_window_stats_result_f32 *s)",
          "source": {
            "line": 365,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L365"
          },
          "summary": "Population variance (divisor N); NaN when N = 0."
        },
        {
          "description": "Sample variance (divisor N - 1); NaN when N < 2.",
          "examples": [],
          "id": "helia_window_stats_sample_variance_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_sample_variance_f32",
          "params": [
            {
              "description": "",
              "name": "s",
              "type": "const helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [],
          "signature": "static float32_t helia_window_stats_sample_variance_f32(const helia_window_stats_result_f32 *s)",
          "source": {
            "line": 373,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L373"
          },
          "summary": "Sample variance (divisor N - 1); NaN when N < 2."
        },
        {
          "description": "",
          "examples": [],
          "id": "helia_window_stats_mean_square_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_mean_square_f32",
          "params": [
            {
              "description": "",
              "name": "s",
              "type": "const helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [],
          "signature": "static float32_t helia_window_stats_mean_square_f32(const helia_window_stats_result_f32 *s)",
          "source": {
            "line": 380,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L380"
          },
          "summary": ""
        },
        {
          "description": "Root mean square of the samples; NaN when N = 0.",
          "examples": [],
          "id": "helia_window_stats_rms_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_rms_f32",
          "params": [
            {
              "description": "",
              "name": "s",
              "type": "const helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [],
          "signature": "static float32_t helia_window_stats_rms_f32(const helia_window_stats_result_f32 *s)",
          "source": {
            "line": 389,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L389"
          },
          "summary": "Root mean square of the samples; NaN when N = 0."
        },
        {
          "description": "Sum of the squared samples, N times the mean square; +0.0f when N = 0.",
          "examples": [],
          "id": "helia_window_stats_sum_squares_f32",
          "kind": "function",
          "language": "c",
          "members": [],
          "name": "helia_window_stats_sum_squares_f32",
          "params": [
            {
              "description": "",
              "name": "s",
              "type": "const helia_window_stats_result_f32 *"
            }
          ],
          "raises": [],
          "returns": [],
          "signature": "static float32_t helia_window_stats_sum_squares_f32(const helia_window_stats_result_f32 *s)",
          "source": {
            "line": 398,
            "path": "helia/include/helia/helia_window_stats.h",
            "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_window_stats.h#L398"
          },
          "summary": "Sum of the squared samples, N times the mean square; +0.0f when N = 0."
        }
      ]
    }
  ],
  "name": "heliaDSP"
}
