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

fluid.stats should take individual entries as well as lists #318

Open
rconstanzo opened this issue Jul 23, 2022 · 2 comments
Open

fluid.stats should take individual entries as well as lists #318

rconstanzo opened this issue Jul 23, 2022 · 2 comments

Comments

@rconstanzo
Copy link

I can see that for most use cases you'd be feeding fluid.stats a list as an input, but now with the @select interface, it's not inconceivable to have a single value needing rolling statistical summaries.

I tried for a bit just doing a float -> pack f f to "fake" having a list, but in the end just rolled my own next to it.

(also, having a derivative computed on the history would be nice too)

@tremblap
Copy link
Member

tremblap commented Aug 8, 2022

you can also cheat by adding the word list in front of the float. we should consider creating an alias in the code @weefuzzy

@rconstanzo
Copy link
Author

That works too, but just a bit of a funky/opaque interface thing.

I imagine the ship for this has sailed too, but having it output (optional?) derivatives too would be great, just to mirror the bufstats version. I basically rolled something like that for the SP-Tools thing and found it really useful on arbitrary metrics (delta times between attacks, arbitrary descriptors, etc...).

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

2 participants