gnu-octave / gnu-octave/statistics

Difference in `ff2n` results.

Open Beginner friendly
#498 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
MATLAB
Stars
42
Forks
43
Avg merge
2d 5h
Merged PRs (30d)
31

Description

I found this difference in the results of ff2n, while passing empty input. Can you check the following @pr0m1th3as , thank you.
In Octave:

octave:21> ff2n ([]);
error: ff2n: @var{N} must be a positive integer scalar.
error: called from
    ff2n at line 39 column 5

In MATLAB:

>> ff2n ([])

ans =

     []

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by locating the ff2n implementation and checking how it handles an empty input. Compare its result and error behavior with the MATLAB example; done means the behavior is intentionally aligned with the expected compatibility result and covered by a regression check.

Written by the indexing model from the issue text.

Assessment

Tech stack
matlab
Domain
data
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Active
Clarity
Mostly clear
Newbie friendliness
70/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.