1. Gaussian Mixture Model
GMM_EM.m: expectation maximization for Gaussian mixture model.
GMM_VI.m: variational inference for Gaussian mixture model.
GMM_MCMC.m: Gibbs sampling for Gaussian mixture model.
data.mat: input sample.
Solver_MonteCarlo.cpp: Monte Carlo solution of integral equations in the form:
For example: x0 = 2, x1 = 0, x2 = 2, y0 = 4, y1 = -1, y2 = 1, z0 = 3, z1 = 1, z2 = 1.5.
$ g++ -o mc.o Solver_MonteCarlo.cpp
$ ./mc.o 1000000 2 0 2 4 -1 1 3 1 1.5
Solver_Newton.cpp: Newton solver of t, s.t. f(t) = val, where f(t) is in the form:
For example: w1 = 9, w2 = 1, w3 = 2, val = 3.
$ g++ -o newton.o Solver_Newton.cpp
$ ./newton.o 9 1 2 3
4. Strassen Solver Solver
Solver_Strassen.cpp: Strassen solver of matrix multiplication C = A * B.
a.txt: contains matrix A.
b.txt: contains matrix B.
$ g++ -o strassen.o Solver_Strassen.cpp
$ ./strassen.o
5. Partial Diffusion Equation
Solver_PDE_string.cpp: solve partial differential equation for a vibrating string.
Solver_PDE_heat.cpp: solve partial differential equation for a heat.
$ g++ -o pde_string.o Solver_PDE_string.cpp
$ ./pde_string.o
$ g++ -o pde_heat.o Solver_PDE_heat.cpp
$ ./pde_heat.o