{
  "$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": "",
      "name": "heliaDSP",
      "path": "heliaDSP",
      "submodules": [
        {
          "description": "Periodic discrete wavelet transform (DWT), f32.\n\nMulti-level forward (analysis) and inverse (synthesis) DWT of one frame of N real samples with periodic boundary extension, matching PyWavelets `wavedec` / `waverec` with `mode=\"periodization\"` for the wavelets listed in `helia_dwt_wavelet_t`.\n\nEach direction has three entry points with one contract:\n\n| Entry point | Implementation |\n| --- | --- |\n| `helia_dwt_forward_f32()` | MVE when the build targets floating-point MVE (`__ARM_FEATURE_MVE & 2`) and `ARM_MATH_AUTOVECTORIZE` is not defined, optimized scalar otherwise |\n| `helia_dwt_forward_scalar_f32()` | optimized scalar, on every target |\n| `helia_dwt_reference_forward_f32()` | readable scalar reference (the test oracle) |\n\nand likewise `helia_dwt_inverse_f32()`, `helia_dwt_inverse_scalar_f32()` and `helia_dwt_reference_inverse_f32()`. The implementation behind `helia_dwt_forward_f32()` is fixed by the preprocessor 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\n:::note[Version]\nThe operation was added in heliaDSP 2.1.0. The `helia_dsp` target defines HELIA_DSP_VERSION_MAJOR, HELIA_DSP_VERSION_MINOR and HELIA_DSP_VERSION_PATCH, through which a consumer checks the release at compile time.\n\n:::\n\n:::note[Build requirements]\nInclude `helia/helia_dwt.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 entry points call `memcpy` and `memset`, which the application's C library supplies. The implementation behind the general entry points depends on the target's floating-point MVE and on ARM_MATH_AUTOVECTORIZE as defined when the library is compiled; the declarations and the instance layout depend on no build option.\n\n:::\n\n:::note[Coefficient layout]\nA forward transform of L levels writes N coefficients packed as `[A_L | D_L | D_(L-1) | ... | D_1]`: the level-L approximation (N/2^L values) followed by the detail bands from coarsest to finest. Band D_l holds N/2^l values and starts at element N/2^l. The inverse transform reads the same layout.\n\n:::\n\n:::note[Numerical contract]\nThe qualified domain is inputs for which every input, product, partial sum and output is zero or a normal f32 number (no NaN, infinity or subnormal value), computed with FPSCR.RMode at round to nearest, its reset value. Outside it the implementations may differ. The MVE path depends on FPSCR in two ways: its floating-point instructions flush subnormal operands and results to zero whatever FPSCR.FZ selects, and they round to nearest whatever FPSCR.RMode selects, whereas the scalar implementations follow both FPSCR.FZ and FPSCR.RMode.\n\n:::\n\nEvery entry point evaluates each output as the reference does, without fused multiply-add. A forward output is a sum, starting at +0.0f, of the products of one tap and one sample, added in tap order. An inverse output starts at +0.0f; for each input i in increasing order and each tap t in increasing order it accumulates lo[t] * a[i] + hi[t] * d[i], the two products added together first. Under that rule the optimized and MVE implementations are required to return results identical bit for bit to the reference on the library's test corpus, which is a test gate, not a proof for all finite inputs. The library compiles these sources without fast-math and without floating-point contraction whatever flags the application uses.\n\nSigned zero: in the qualified domain every zero output is +0.0f, from every entry point, and an input of -0.0f gives the same result as an input of +0.0f. Every sum starts at +0.0f, and under round to nearest adding a zero leaves a sum's value, and an exact cancellation gives +0.0f. This follows from the evaluation rule; the library's tests check it with each zero sample of three input patterns as +0.0f and as -0.0f.\n\nReconstruction is not exact: an inverse following a forward transform returns the input up to f32 rounding (see the library's test report for measured errors).\n\nThe entry points do not check for NaN or infinity. Such inputs are outside the qualified domain, and no result is specified for them.\n\n:::note[Memory contract]\n- All buffers hold f32 elements with natural (4-byte) alignment; no greater alignment, padding or capacity beyond the stated sizes is required, and no element outside the stated sizes is read or written.\n- Source, destination and workspace must not overlap one another or the instance.\n- The source buffer is not modified.\n- No entry point allocates memory, keeps a pointer after it returns, or uses mutable static state; one instance may be used concurrently from several threads with separate buffers.\n- Buffers may be in any Normal memory the core reads and writes with ordinary and MVE loads and stores; no memory region is required. Cycle counts depend on the placement.\n- Persistent storage is the instance alone, sizeof(helia_dwt_instance_f32) bytes, which must stay unmodified for as long as it is passed to an entry point. No state is carried from one call to the next. The workspace is used only during a call. The filter coefficients are constant tables in the library's read-only data.\n\n:::\n\n:::note[Status]\nEvery function returning arm_status returns ARM_MATH_SUCCESS or ARM_MATH_ARGUMENT_ERROR and no other value; the conditions for ARM_MATH_ARGUMENT_ERROR are stated at each function.\n\n:::\n\n:::note[Cycles]\nLoop counts and branches depend on N, the number of levels and the wavelet, not on sample values. The Apollo510 cycle counts were measured with one dense input; whether cycles vary with the data, for example with subnormal operands outside the qualified domain, is not measured.\n\n:::\n\n:::note[Stack]\nEach function states its stack use at its declaration. The process entry points were measured on the Apollo510 EVB by painting below the stack pointer (the figure includes the measuring call's overhead), over frames of 8 to 2048 samples at one, three, four and six levels and both wavelets, with the library built at -O3; the size queries and `helia_dwt_init_f32()` call no function and their figures are the compilers' static frame sizes. No entry point recurses or allocates on the stack in proportion to N.\n\n:::\n\n:::note[Evidence]\nThe tests in `helia/tests/dwt/` run the contract on the host and on the Corstone-300 model (`tools/qualification/build.py`); Apollo510 EVB cycles and flash use under ATfE 22.1.0 and GCC 14.2.1 are in the documentation's measurements guide. The operation was admitted for compressionKIT's PPG codec (Coif5, 320 samples, six levels) and ECG codec (bior4.4, 512 samples, six levels).\n\n:::",
          "name": "helia_dwt.h",
          "path": "heliaDSP.helia_dwt",
          "submodules": [],
          "summary": "Periodic discrete wavelet transform (DWT), f32.",
          "symbols": [
            {
              "description": "Configuration of a DWT of fixed frame size and depth.\n\nCreated by `helia_dwt_init_f32()` and read-only afterwards. The layout is the same in every build configuration. Process functions do not check the fields; an instance not produced by `helia_dwt_init_f32()` is undefined behaviour.",
              "examples": [],
              "id": "helia_dwt_instance_f32",
              "kind": "struct",
              "language": "c",
              "members": [
                {
                  "description": "N, samples per frame.",
                  "examples": [],
                  "id": "helia_dwt_instance_f32::frame_size",
                  "kind": "attribute",
                  "language": "c",
                  "members": [],
                  "name": "frame_size",
                  "params": [],
                  "raises": [],
                  "returns": [],
                  "signature": "uint32_t frame_size",
                  "source": {
                    "line": 167,
                    "path": "helia/include/helia/helia_dwt.h",
                    "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L167"
                  },
                  "summary": "N, samples per frame."
                },
                {
                  "description": "L, decomposition levels.",
                  "examples": [],
                  "id": "helia_dwt_instance_f32::levels",
                  "kind": "attribute",
                  "language": "c",
                  "members": [],
                  "name": "levels",
                  "params": [],
                  "raises": [],
                  "returns": [],
                  "signature": "uint32_t levels",
                  "source": {
                    "line": 168,
                    "path": "helia/include/helia/helia_dwt.h",
                    "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L168"
                  },
                  "summary": "L, decomposition levels."
                },
                {
                  "description": "Wavelet and boundary convention.",
                  "examples": [],
                  "id": "helia_dwt_instance_f32::wavelet",
                  "kind": "attribute",
                  "language": "c",
                  "members": [],
                  "name": "wavelet",
                  "params": [],
                  "raises": [],
                  "returns": [],
                  "signature": "helia_dwt_wavelet_t wavelet",
                  "source": {
                    "line": 169,
                    "path": "helia/include/helia/helia_dwt.h",
                    "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L169"
                  },
                  "summary": "Wavelet and boundary convention."
                }
              ],
              "name": "helia_dwt_instance_f32",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "struct helia_dwt_instance_f32",
              "source": {
                "line": 165,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L165"
              },
              "summary": "Configuration of a DWT of fixed frame size and depth."
            },
            {
              "description": "Wavelet and boundary convention.\n\nA deployed bitstream identifies one transform, including its boundary extension; the values of this enumeration are stable.",
              "examples": [],
              "id": "helia_dwt_wavelet_t",
              "kind": "enum",
              "language": "c",
              "members": [
                {
                  "description": "Biorthogonal 4.4 (PyWavelets `bior4.4`), 10-tap filters, periodic extension.",
                  "examples": [],
                  "id": "HELIA_DWT_BIOR44_PERIODIC",
                  "kind": "constant",
                  "language": "c",
                  "members": [],
                  "name": "HELIA_DWT_BIOR44_PERIODIC",
                  "params": [],
                  "raises": [],
                  "returns": [],
                  "signature": "HELIA_DWT_BIOR44_PERIODIC = 0",
                  "source": {
                    "line": 151,
                    "path": "helia/include/helia/helia_dwt.h",
                    "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L151"
                  },
                  "summary": "Biorthogonal 4.4 (PyWavelets bior4.4), 10-tap filters, periodic extension."
                },
                {
                  "description": "Coiflet 5 (PyWavelets `coif5`), 30-tap filters, periodic extension.",
                  "examples": [],
                  "id": "HELIA_DWT_COIF5_PERIODIC",
                  "kind": "constant",
                  "language": "c",
                  "members": [],
                  "name": "HELIA_DWT_COIF5_PERIODIC",
                  "params": [],
                  "raises": [],
                  "returns": [],
                  "signature": "HELIA_DWT_COIF5_PERIODIC = 1",
                  "source": {
                    "line": 151,
                    "path": "helia/include/helia/helia_dwt.h",
                    "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L151"
                  },
                  "summary": "Coiflet 5 (PyWavelets coif5), 30-tap filters, periodic extension."
                }
              ],
              "name": "helia_dwt_wavelet_t",
              "params": [],
              "raises": [],
              "returns": [],
              "signature": "enum helia_dwt_wavelet_t",
              "source": {
                "line": 151,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L151"
              },
              "summary": "Wavelet and boundary convention."
            },
            {
              "description": "Initialize a DWT configuration.\n\nSupported configurations: 1 <= `levels` <= 30, `frame_size` a nonzero multiple of 2^`levels` and at most UINT32_MAX / 2, and `wavelet` one of `helia_dwt_wavelet_t`. The coarsest stage therefore filters 2 or more samples; stages shorter than the filter wrap periodically as PyWavelets does. No implicit padding is applied.\n\nStack: 8 bytes (ATfE 22.1.0), 4 bytes (GCC 14.2.1).",
              "examples": [],
              "id": "helia_dwt_init_f32",
              "kind": "function",
              "language": "c",
              "members": [],
              "name": "helia_dwt_init_f32",
              "params": [
                {
                  "description": "Instance to initialize.",
                  "direction": "out",
                  "name": "S",
                  "type": "helia_dwt_instance_f32 *"
                },
                {
                  "description": "N, samples per frame.",
                  "direction": "in",
                  "name": "frame_size",
                  "type": "uint32_t"
                },
                {
                  "description": "L, decomposition levels.",
                  "direction": "in",
                  "name": "levels",
                  "type": "uint32_t"
                },
                {
                  "description": "Wavelet and boundary convention.",
                  "direction": "in",
                  "name": "wavelet",
                  "type": "helia_dwt_wavelet_t"
                }
              ],
              "raises": [],
              "returns": [
                {
                  "description": "ARM_MATH_SUCCESS, or ARM_MATH_ARGUMENT_ERROR (and `S` unmodified) for a NULL `S` or an unsupported configuration."
                }
              ],
              "signature": "arm_status helia_dwt_init_f32(\n    helia_dwt_instance_f32 *S,\n    uint32_t frame_size,\n    uint32_t levels,\n    helia_dwt_wavelet_t wavelet\n)",
              "source": {
                "line": 190,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L190"
              },
              "summary": "Initialize a DWT configuration."
            },
            {
              "description": "Number of f32 elements in the packed coefficients of `S`.\n\nStack: 0 bytes (ATfE 22.1.0), 0 bytes (GCC 14.2.1).",
              "examples": [],
              "id": "helia_dwt_packed_size_f32",
              "kind": "function",
              "language": "c",
              "members": [],
              "name": "helia_dwt_packed_size_f32",
              "params": [
                {
                  "description": "",
                  "name": "S",
                  "type": "const helia_dwt_instance_f32 *"
                }
              ],
              "raises": [],
              "returns": [
                {
                  "description": "N, or 0 for a NULL `S`."
                }
              ],
              "signature": "uint32_t helia_dwt_packed_size_f32(const helia_dwt_instance_f32 *S)",
              "source": {
                "line": 201,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L201"
              },
              "summary": "Number of f32 elements in the packed coefficients of S."
            },
            {
              "description": "Number of f32 workspace elements every forward and inverse entry point requires for `S`.\n\nThe value is max(2N, N + 10) for bior4.4 and max(2N, N + 30) for Coif5, which is 2N for N >= 10 (bior4.4) and N >= 30 (Coif5).\n\nStack: 8 bytes (ATfE 22.1.0), 8 bytes (GCC 14.2.1).",
              "examples": [],
              "id": "helia_dwt_workspace_size_f32",
              "kind": "function",
              "language": "c",
              "members": [],
              "name": "helia_dwt_workspace_size_f32",
              "params": [
                {
                  "description": "",
                  "name": "S",
                  "type": "const helia_dwt_instance_f32 *"
                }
              ],
              "raises": [],
              "returns": [
                {
                  "description": "The workspace size in elements, or 0 for a NULL `S`."
                }
              ],
              "signature": "uint32_t helia_dwt_workspace_size_f32(const helia_dwt_instance_f32 *S)",
              "source": {
                "line": 214,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L214"
              },
              "summary": "Number of f32 workspace elements every forward and inverse entry point requires for S."
            },
            {
              "description": "Forward DWT: MVE 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: 124 to 128 bytes (ATfE 22.1.0), 136 bytes (GCC 14.2.1).",
              "examples": [],
              "id": "helia_dwt_forward_f32",
              "kind": "function",
              "language": "c",
              "members": [],
              "name": "helia_dwt_forward_f32",
              "params": [
                {
                  "description": "Instance from `helia_dwt_init_f32()`.",
                  "direction": "in",
                  "name": "S",
                  "type": "const helia_dwt_instance_f32 *"
                },
                {
                  "description": "N input samples; not modified.",
                  "direction": "in",
                  "name": "pSrc",
                  "type": "const float32_t *"
                },
                {
                  "description": "N coefficients, `[A_L | D_L | ... | D_1]`.",
                  "direction": "out",
                  "name": "pPackedCoeffs",
                  "type": "float32_t *"
                },
                {
                  "description": "Scratch of `workspaceSize` elements; its contents on entry are ignored and on return are unspecified.",
                  "direction": "inout",
                  "name": "pWorkspace",
                  "type": "float32_t *"
                },
                {
                  "description": "Capacity of `pWorkspace` in f32 elements (not bytes); at least helia_dwt_workspace_size_f32(S).",
                  "direction": "in",
                  "name": "workspaceSize",
                  "type": "uint32_t"
                }
              ],
              "raises": [],
              "returns": [
                {
                  "description": "ARM_MATH_SUCCESS, or ARM_MATH_ARGUMENT_ERROR without writing any buffer when a pointer is NULL or `workspaceSize` is too small."
                }
              ],
              "signature": "arm_status helia_dwt_forward_f32(\n    const helia_dwt_instance_f32 *S,\n    const float32_t *pSrc,\n    float32_t *pPackedCoeffs,\n    float32_t *pWorkspace,\n    uint32_t workspaceSize\n)",
              "source": {
                "line": 234,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L234"
              },
              "summary": "Forward DWT: MVE implementation on targets with floating-point MVE, unless the library is built with ARMMATHAUTOVECTORIZE (CMake AUTOVECTORIZE=ON), optimized s…"
            },
            {
              "description": "Forward DWT, optimized scalar implementation on every target.\n\nSame contract as `helia_dwt_forward_f32()`.\n\nStack: 136 bytes (ATfE 22.1.0), 108 bytes (GCC 14.2.1).",
              "examples": [],
              "id": "helia_dwt_forward_scalar_f32",
              "kind": "function",
              "language": "c",
              "members": [],
              "name": "helia_dwt_forward_scalar_f32",
              "params": [
                {
                  "description": "",
                  "name": "S",
                  "type": "const helia_dwt_instance_f32 *"
                },
                {
                  "description": "",
                  "name": "pSrc",
                  "type": "const float32_t *"
                },
                {
                  "description": "",
                  "name": "pPackedCoeffs",
                  "type": "float32_t *"
                },
                {
                  "description": "",
                  "name": "pWorkspace",
                  "type": "float32_t *"
                },
                {
                  "description": "",
                  "name": "workspaceSize",
                  "type": "uint32_t"
                }
              ],
              "raises": [],
              "returns": [],
              "signature": "arm_status helia_dwt_forward_scalar_f32(\n    const helia_dwt_instance_f32 *S,\n    const float32_t *pSrc,\n    float32_t *pPackedCoeffs,\n    float32_t *pWorkspace,\n    uint32_t workspaceSize\n)",
              "source": {
                "line": 247,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L247"
              },
              "summary": "Forward DWT, optimized scalar implementation on every target."
            },
            {
              "description": "Forward DWT, reference implementation.\n\nSame contract as `helia_dwt_forward_f32()`. Written for review rather than speed; the other forward entry points are tested against it.\n\nStack: 136 bytes (ATfE 22.1.0), 112 bytes (GCC 14.2.1).",
              "examples": [],
              "id": "helia_dwt_reference_forward_f32",
              "kind": "function",
              "language": "c",
              "members": [],
              "name": "helia_dwt_reference_forward_f32",
              "params": [
                {
                  "description": "",
                  "name": "S",
                  "type": "const helia_dwt_instance_f32 *"
                },
                {
                  "description": "",
                  "name": "pSrc",
                  "type": "const float32_t *"
                },
                {
                  "description": "",
                  "name": "pPackedCoeffs",
                  "type": "float32_t *"
                },
                {
                  "description": "",
                  "name": "pWorkspace",
                  "type": "float32_t *"
                },
                {
                  "description": "",
                  "name": "workspaceSize",
                  "type": "uint32_t"
                }
              ],
              "raises": [],
              "returns": [],
              "signature": "arm_status helia_dwt_reference_forward_f32(\n    const helia_dwt_instance_f32 *S,\n    const float32_t *pSrc,\n    float32_t *pPackedCoeffs,\n    float32_t *pWorkspace,\n    uint32_t workspaceSize\n)",
              "source": {
                "line": 261,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L261"
              },
              "summary": "Forward DWT, reference implementation."
            },
            {
              "description": "Inverse DWT: MVE 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: 124 bytes (ATfE 22.1.0), 140 bytes (GCC 14.2.1).",
              "examples": [],
              "id": "helia_dwt_inverse_f32",
              "kind": "function",
              "language": "c",
              "members": [],
              "name": "helia_dwt_inverse_f32",
              "params": [
                {
                  "description": "Instance from `helia_dwt_init_f32()`.",
                  "direction": "in",
                  "name": "S",
                  "type": "const helia_dwt_instance_f32 *"
                },
                {
                  "description": "N coefficients, `[A_L | D_L | ... | D_1]`; not modified.",
                  "direction": "in",
                  "name": "pPackedCoeffs",
                  "type": "const float32_t *"
                },
                {
                  "description": "N reconstructed samples.",
                  "direction": "out",
                  "name": "pDst",
                  "type": "float32_t *"
                },
                {
                  "description": "Scratch of `workspaceSize` elements; its contents on entry are ignored and on return are unspecified.",
                  "direction": "inout",
                  "name": "pWorkspace",
                  "type": "float32_t *"
                },
                {
                  "description": "Capacity of `pWorkspace` in f32 elements (not bytes); at least helia_dwt_workspace_size_f32(S).",
                  "direction": "in",
                  "name": "workspaceSize",
                  "type": "uint32_t"
                }
              ],
              "raises": [],
              "returns": [
                {
                  "description": "ARM_MATH_SUCCESS, or ARM_MATH_ARGUMENT_ERROR without writing any buffer when a pointer is NULL or `workspaceSize` is too small."
                }
              ],
              "signature": "arm_status helia_dwt_inverse_f32(\n    const helia_dwt_instance_f32 *S,\n    const float32_t *pPackedCoeffs,\n    float32_t *pDst,\n    float32_t *pWorkspace,\n    uint32_t workspaceSize\n)",
              "source": {
                "line": 286,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L286"
              },
              "summary": "Inverse DWT: MVE implementation on targets with floating-point MVE, unless the library is built with ARMMATHAUTOVECTORIZE (CMake AUTOVECTORIZE=ON), optimized s…"
            },
            {
              "description": "Inverse DWT, optimized scalar implementation on every target.\n\nSame contract as `helia_dwt_inverse_f32()`.\n\nStack: 124 bytes (ATfE 22.1.0), 116 bytes (GCC 14.2.1).",
              "examples": [],
              "id": "helia_dwt_inverse_scalar_f32",
              "kind": "function",
              "language": "c",
              "members": [],
              "name": "helia_dwt_inverse_scalar_f32",
              "params": [
                {
                  "description": "",
                  "name": "S",
                  "type": "const helia_dwt_instance_f32 *"
                },
                {
                  "description": "",
                  "name": "pPackedCoeffs",
                  "type": "const float32_t *"
                },
                {
                  "description": "",
                  "name": "pDst",
                  "type": "float32_t *"
                },
                {
                  "description": "",
                  "name": "pWorkspace",
                  "type": "float32_t *"
                },
                {
                  "description": "",
                  "name": "workspaceSize",
                  "type": "uint32_t"
                }
              ],
              "raises": [],
              "returns": [],
              "signature": "arm_status helia_dwt_inverse_scalar_f32(\n    const helia_dwt_instance_f32 *S,\n    const float32_t *pPackedCoeffs,\n    float32_t *pDst,\n    float32_t *pWorkspace,\n    uint32_t workspaceSize\n)",
              "source": {
                "line": 299,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L299"
              },
              "summary": "Inverse DWT, optimized scalar implementation on every target."
            },
            {
              "description": "Inverse DWT, reference implementation.\n\nSame contract as `helia_dwt_inverse_f32()`. Written for review rather than speed; the other inverse entry points are tested against it.\n\nStack: 124 bytes (ATfE 22.1.0), 108 bytes (GCC 14.2.1).",
              "examples": [],
              "id": "helia_dwt_reference_inverse_f32",
              "kind": "function",
              "language": "c",
              "members": [],
              "name": "helia_dwt_reference_inverse_f32",
              "params": [
                {
                  "description": "",
                  "name": "S",
                  "type": "const helia_dwt_instance_f32 *"
                },
                {
                  "description": "",
                  "name": "pPackedCoeffs",
                  "type": "const float32_t *"
                },
                {
                  "description": "",
                  "name": "pDst",
                  "type": "float32_t *"
                },
                {
                  "description": "",
                  "name": "pWorkspace",
                  "type": "float32_t *"
                },
                {
                  "description": "",
                  "name": "workspaceSize",
                  "type": "uint32_t"
                }
              ],
              "raises": [],
              "returns": [],
              "signature": "arm_status helia_dwt_reference_inverse_f32(\n    const helia_dwt_instance_f32 *S,\n    const float32_t *pPackedCoeffs,\n    float32_t *pDst,\n    float32_t *pWorkspace,\n    uint32_t workspaceSize\n)",
              "source": {
                "line": 313,
                "path": "helia/include/helia/helia_dwt.h",
                "url": "https://github.com/AmbiqAI/helia-dsp/blob/4a7b7f054eafd96ae50c12050ad3ef3ec1ebaea1/helia/include/helia/helia_dwt.h#L313"
              },
              "summary": "Inverse DWT, reference implementation."
            }
          ]
        },
        {
          "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."
            }
          ]
        }
      ],
      "summary": "",
      "symbols": []
    }
  ],
  "name": "heliaDSP"
}
