Skip to content
This repository was archived by the owner on Feb 7, 2024. It is now read-only.
This repository was archived by the owner on Feb 7, 2024. It is now read-only.

minimum_phase method returns a longer input sequence when n is longer than the input #267

@7sharp9

Description

@7sharp9

If I use minimum_phase like this:

def next_power_of_2(x):
    return 1 if x == 0 else 2 ** np.ceil(np.log2(x)).astype('int')
    
n = next_power_of_2 (len(signal))
mpt = minimum_phase(signal, n)

Then I get back a size of mpt thats being minimum phase transformed thats the same size as the expanded fft, rather than the original signal length.

I think something like this would need to be done:

m = np.fft.ifft(np.exp(np.fft.fft(window[:len(x)] * ceps))).real

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions