@CrisLuengo Don't you hate it when OP deletes the question and there goes your answer? (I think that's what happened). I upvoted and commented in your answer, marked question as duplicate, and now there is no trace of any of that. What I hate the most is that the actions (comments, votes etc) do not even appear in your profile page. It's as if all of that hadn't happened
I just looked through some of my many, many deleted answers. Some were deleted because Martijn Pieters♦ deleted the question. None of those were closed first, some even had an upvote. Sure, not brilliant questions by any means, but I don’t understand the zealousness with which some people delete stuff on here.
Stupid question: Let's say I have some discretized gauss curve i.e. an 1d or 2d grayscale image of a gaussian blob, and I'd like to measure its standard deviation
so if the picture is nice (much wider than the std, and many pixels within one std) I had success with a quick and dirty way of finding the maximum and then doing 1/max * sqrt(2*pi)
quite golfy, one or two lines of code, but if course it starts to fail for the cases where the picture is not nice
is there similarly golfy way of doing it, but maybe not quite as sledge-hammery?
Search the mu, sigma space to fit a Gaussian curve to the image? The fitting criterion could be RMS, or maybe weighted RMS, giving more importance to the center if that makes sense in your application
Not very golfy, I know
A quicker way would be to compute the std from the image considered as a histogram. Very easy to do
@CrisLuengo I don't actually have an problem where I need it right now (the 1/max solution was sufficient), but just wondered what other methods there are out of curiosity:)
An even tougher method is to threshold at 50% if the max value and see how large the region is. This is the FWHM (full width half maximum) from which you can determine the sigma.
@AndrasDeak--СлаваУкраїні OK, keeping it as a community wiki just to avoid deletion. Thanks.
@AndrasDeak--СлаваУкраїні It is possible that the user was deleted, along with all their posts. The examples I saw all were asked by a user account that no longer exists (no link to the user page).