gravit icon indicating copy to clipboard operation
gravit copied to clipboard

autozoom tweaks to ignore stray particles

Open gak opened this issue 14 years ago • 1 comments

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.

gak avatar Oct 03 '11 22:10 gak

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.

FrMo avatar Dec 29 '12 01:12 FrMo