Skip to content

feat: windowed を追加する #71

@github-actions

Description

@github-actions

概要

windowed(array $input, int $size, int $step = 1, bool $partial = false, Mode $mode = Mode::MODE_AUTO): array を実装する。スライディング窓を生成し list<array> を返す。

背景

親 Issue: #56
Milestone: feat: 不足した関数のタスク化

実装メモ

  • size <= 0 または step <= 0InvalidArgumentException
  • partial=false は完全窓のみ、partial=true は末尾不完全窓を含む。
  • 窓内部は mode に従ってキー保持/連番化する。

依存関係

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions