Skip to content

Instantly share code, notes, and snippets.

View evilying's full-sized avatar
🎯
Focusing

Jack evilying

🎯
Focusing
View GitHub Profile
@evilying
evilying / Lemon.MinCostFlow.NS.Sample.cpp
Created November 11, 2020 02:36 — forked from Zhouxing-Su/Lemon.MinCostFlow.NS.Sample.cpp
Sample code of using Network Simplex in Lemon for Min Cost Flow problem.
#include <iostream>
#include <lemon/smart_graph.h>
#include <lemon/network_simplex.h>
using namespace lemon;
using namespace std;
@evilying
evilying / pca_animation.m
Created May 27, 2020 15:49 — forked from anonymous/pca_animation.m
Matlab code to produce PCA animations
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Matlab code to produce PCA animations shown here:
% http://stats.stackexchange.com/questions/2691
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% Static image
clear all
rng(42)
@evilying
evilying / README.md
Created May 11, 2020 15:52 — forked from marmakoide/LICENSE.md
Compute and display a Laguerre-Voronoi diagram (aka power diagram), only relying on a 3d convex hull routine. The Voronoi cells are guaranted to be consistently oriented.

2d Laguerre-Voronoi diagrams

This code sample demonstrates how to compute a Laguerre-Voronoi diagram (also known as power diagram) in 2d.

thumbnail

Power diagrams have a wonderful property : they decompose the union of (overlapping) circles into clipped circles that don't overlap. The cells have