This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Integrals | |
using Optim | |
using PreallocationTools | |
using ForwardDiff | |
using Base.Threads | |
################################################# | |
## Automatic higher order derivatives | |
""" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
""" | |
I'ts >not< this: https://ds055uzetaobb.cloudfront.net/brioche/uploads/lRC3MIbnUy-germany_map_2.png?width=1200 , | |
i.e. it is not the classical map graph. | |
""" | |
import matplotlib.pyplot as plt | |
import numpy as np | |
def get_polygon_centroid(points, |