runmat-runtime 0.4.1

Core runtime for RunMat with builtins, BLAS/LAPACK integration, and execution APIs
Documentation
{
  "title": "hamming",
  "category": "math/signal",
  "keywords": ["hamming", "window", "signal processing", "dsp", "fft"],
  "summary": "Generate a Hamming window as an N-by-1 real column vector.",
  "description": "`hamming` generates Hamming windows for signal-processing workflows such as spectral analysis and filter design. RunMat supports the standard MATLAB symmetric and periodic forms.",
  "behaviors": [
    "`hamming(L)` returns an `L x 1` symmetric Hamming window.",
    "`hamming(L, 'periodic')` returns the periodic form used in spectral-analysis workflows.",
    "If `L` is noninteger, RunMat rounds it to the nearest integer before constructing the window.",
    "`hamming(0)` returns an empty `0 x 1` tensor.",
    "`hamming(1)` returns `1`.",
    "For the symmetric case and `L > 1`, coefficients follow `0.54 - 0.46*cos(2*pi*n/(L-1))`.",
    "The periodic form is constructed by evaluating a symmetric window of length `L + 1` and dropping the final sample."
  ],
  "examples": [
    {
      "description": "Generate a short Hamming window",
      "input": "w = hamming(8);\ndisp(w')"
    },
    {
      "description": "Generate a periodic Hamming window",
      "input": "w = hamming(8, 'periodic');\ndisp(w')"
    }
  ],
  "faqs": [
    {
      "question": "When should I use the periodic Hamming window?",
      "answer": "Use `'periodic'` when the window will be paired with FFT-based spectral analysis. The periodic form is built from a symmetric window of length `L + 1` with the final sample removed."
    },
    {
      "question": "What shape does `hamming(L)` return?",
      "answer": "It returns an `L x 1` column vector."
    },
    {
      "question": "Does RunMat support a `typeName` overload for `hamming`?",
      "answer": "RunMat currently implements the documented `hamming(L)` and `hamming(L, sflag)` forms."
    }
  ],
  "links": [
    { "label": "hann", "url": "./hann" },
    { "label": "blackman", "url": "./blackman" },
    { "label": "fft", "url": "./fft" }
  ]
}