-
Notifications
You must be signed in to change notification settings - Fork 21
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
Feature request: Calculate statistics on a (wrapped) stream #24
Comments
Hi @vshymanskyy, Thank you for this suggestion; I think this is a good idea. We could name the new classes:
The members could be:
How does that sound? Best regards, |
Sounds cool. But some names may be ambiguous esp. |
You're right!
|
I'm not sure how to handle error cases: should we count them, or ignore them? For example, if upstream's |
Maybe readErrors() and writeErrors()? |
for such jobs I like the header-only stats classes by https://www.johndcook.com/blog/skewness_kurtosis/ he has several such classes on his website, real collectors items - I collect them here plus my adaptations: https://github.com/mhaberler/Stats |
Could be interesting to be able to grab some stats of the stream usage:
The only difficulty I see here: Some functions (i.e.
readBytes
) could be implemented viaread()
on some streams, but it can also be implemented directly by other implementations. Not sure if there's a clean way to handle it.The text was updated successfully, but these errors were encountered: