MedianShape: Simplicial Median Shape
MedianShape is a simple Python code for solving Simplical Median Shape Problem (SMSP) in simplicial settings using simplicial flat norm distance. It contains several experiments in 2D and 3D. MedianShape is distributed under the GNU GPL. A link to a brief documentation.
For a quick demonstration, run:
$ python mediandemo2d.py
or:
$ python mediandemo3d.py
MedianShape is compatible with both Python 2 (The author used only Python 2.7). It requires several common Python packages and scientific computing tools:
- NumPy
- SciPy
- PyDistMesh
- cplex or cvxopt
- matplotlib (optional)