autozoom tweaks to ignore stray particles
From Emanuel Larsson:
Second, theese simulations are really nice but sometimes you end up with a lot of "empty space" on screen since zoom level might be to high or low or that galaxies moved out of the vieving area partly or inteirly. I am aware of the autozoom command but sometimes there some few particles very far out from the core and then the interesting core i missed. So if possible I think it could be interesting to be able to set a percentage of particles or percentage of mass that should be within viewing range when autozooming.
hmmm... the mean value of all positions, and the standard deviation could be helpful to implement this feature... http://en.wikipedia.org/wiki/Standard_deviation#Rapid_calculation_methods http://en.wikipedia.org/wiki/Algorithms_for_calculating_variance
Two "standard deviations" from the mean account for 95.45 percent of all particles; three "standard deviations" account for 99.73 percent.