C Board - General Discussions
https://cboard.cprogramming.com/
Non-programming related topicsenMon, 06 Apr 2020 07:16:48 GMTvBulletin60https://cboard.cprogramming.com/images/misc/rss.pngC Board - General Discussions
https://cboard.cprogramming.com/
cgrep. a grep-like tool for c-family source files
https://cboard.cprogramming.com/general-discussions/178918-cgrep-grep-like-tool-c-family-source-files-new-post.html
Wed, 01 Apr 2020 10:44:44 GMTHi, I would like to introduce cgrep, a grep-like tool for C-family source files. It basically lets you regex-search through C-family source files for specific AST nodes. So for example you can search for member functions that have "[Rr]un" in their name. You can read more about what crep can currently do here: https://github.com/bloodstalker/cgrep
cgrep uses clang's libtooling library. Currently Linux and Cygwin builds are supported. Supported LLVM/Clang versions are 5,6,7,8,9 and 10. Feature Requests/Suggestions are very welcome.
]]>General Discussionsbloodstalkerhttps://cboard.cprogramming.com/general-discussions/178918-cgrep-grep-like-tool-c-family-source-files.htmlMinimizing Poisson distributions?
https://cboard.cprogramming.com/general-discussions/178865-minimizing-poisson-distributions-new-post.html
Thu, 12 Mar 2020 14:43:09 GMTSuppose you were looking at the Poisson distribution P(L, I) for a given Lambda and Index. How would you go about minimizing P to some arbitrary confidence level? My initial thought is to simply iterate away from Lambda (using a binary partition for example) until P is sufficiently minimal. Maybe...Suppose you were looking at the Poisson distribution P(L, I) for a given Lambda and Index. How would you go about minimizing P to some arbitrary confidence level? My initial thought is to simply iterate away from Lambda (using a binary partition for example) until P is sufficiently minimal. Maybe not too inefficient, but surely there is a more direct approach for this?

In case it's not too clear, let me give an example. Let's say you own an online store and sell an average of 12 units per day. What is the most number of units you can expect to sell on any given day, within a certain measure of confidence? Well the chances of selling exactly 12 of them is roughly 11.5%. At 16 the probability drops down to ~7%, and at 18 units per day it falls to less than 3%. So all things being equal, ~97% of the time we should expect to sell no more than 18 units on any given day. So as long as we keep at least that many units in inventory, the chances of running out of stock should be pretty slim.

Can this "maximal minima" be calculated directly, and if so, how?
]]>General DiscussionsSir Galahadhttps://cboard.cprogramming.com/general-discussions/178865-minimizing-poisson-distributions.html