Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Prominence argument: misspelled or intended? #27

Open
OedoSoldier opened this issue Apr 6, 2021 · 0 comments
Open

Prominence argument: misspelled or intended? #27

OedoSoldier opened this issue Apr 6, 2021 · 0 comments

Comments

@OedoSoldier
Copy link

In scripts/InitializationNotebook.ipynb:

try:
    trim_min = sorted(size)[round(len(size) ** 0.05)]
except:
    import code; code.interact(local=dict(globals(), **locals()))
trim_max = sorted(size)[round(len(size) ** 0.95)]
trim_range = trim_max - trim_min
peaks = set(scipy.signal.find_peaks(-size, distance=20, prominence=(0.50 * trim_range))[0])

I've noticed the indices of sorted size/area list are calculated by the length of the video, but I can't grasp why using exponent (len ** 0.05/0.95) instead of multiple (len * 0.05/0.95) to obtain a trimmed mean?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant