AVasK / MonteCarloAreaEstimator

Monte-Carlo method for area estimation [Python]

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Monte-Carlo Area Estimator

  • Estimating area of complex figures.

Screenshot

  • Random Sampling
  • SubRandom Sampling (for lower discrepancy, in theory).

To run it if you ever need to write

MC(_list_of_vertices, iters, visualise = True or False, s_type = "rand" or "subrand")

Which will run a single iteration of Monte-Carlo which is really annoying, i know but i don't give sh*t

OR

area(vertices, iters, mean_iters, s_type)

Which should theoretically calculate mean of mean_iters runs but it's buggy AF and it will plot mean_iters graphs on your screen and blow-up your PC occasionally

About

Monte-Carlo method for area estimation [Python]


Languages

Language:Python 100.0%