Merge pull request #500 from Jay-Sparrow/Dynamic2

Dynamic2
This commit is contained in:
QuoteFox
2020-09-25 13:13:58 +01:00
committed by GitHub
19 changed files with 3875 additions and 7 deletions
+7
View File
@@ -209,4 +209,11 @@
return list(region_x1 & region_x2, region_y1 & region_y2)
#define EXP_DISTRIBUTION(desired_mean) ( -(1/(1/desired_mean)) * log(rand(1, 1000) * 0.001) )
#define LORENTZ_DISTRIBUTION(x, s) ( s*TAN(TODEGREES(PI*(rand()-0.5))) + x )
#define LORENTZ_CUMULATIVE_DISTRIBUTION(x, y, s) ( (1/PI)*TORADIANS(arctan((x-y)/s)) + 1/2 )
#define RULE_OF_THREE(a, b, x) ((a*x)/b)
// )