Skip to content

Instantly share code, notes, and snippets.

Avatar

Lianera lianera

View GitHub Profile
View grid-segmentation.cpp
#include <iostream>
#include <vector>
#include <map>
#include <set>
using namespace std;
const int M = 9;
const int N = M * M;
const int S = 9;
@lianera
lianera / ocean.m
Created Feb 3, 2016
A cross-sectional view of ocean simulation. See http://lianera.com/cg/2016/01/29/OceanSectional.html
View ocean.m
clear;
width=100;
height=100;
snum=5;
xi=rand(snum,1)*width;
yi=rand(snum,1)*height;
fhi=rand(snum,1)*2*pi;
Ai=rand(snum,1)*0.3;
frei=rand(snum,1)*0.1;
lambda=10;