본문 바로가기

Markov Chain Monte Carlo (MCMC) and Gibbs Sampling example(MATLAB) Definition 1. Markov Chain (x0, x1, xk, .. )의 Random Variable이 있을 때, 모든 k에 대해서 P(x_k | x_k-1, x_k2, ... x_0) = P(x_k | x_k-1)을 만족한다. 즉 k번 째 Random Variable(x_k)의 probability는 k-1번째 Random Variable(x_k-1)에만 의존한다. 이 때 P_k(x_k | x_k-1)은 transition probability distribution(TPD) at time step k라고 불린다. Markov Chain은 TPD가 모든 time step k에 대해서 같을 때 stationary transition probability를 가진다. 이러한 stationary tr.. 더보기
Matlab에서 "Out of Memory" 해결하기 자세한(정확한) 내용은 다음 페이지에서 확인할 수 있다. http://www.mathworks.co.kr/help/techdoc/matlab_prog/brh72ex-49.html Step 1. Window system에서 3GB 메모리 할당하기. 1. 관리자 권한으로 파일 프롬프트를 연다. 2. BCDEdit /set increaseuserva 3072 를 치고 엔터! 3. 끝 Step 2. 페이징 크기 키우기 1. 내 컴퓨터를 연다. 2. 고급 시스템 설정에 들어간다. 3. 성능 ->설정 4. 성능 옵션 -> 고급 5. 가상 메모리 변경 6. 여기서 메모리를 변경한다. 이 때 밑에 모든 드라이브의 총 페이징 파일 크기의 권장을 확인한다. 7. 컴퓨터를 껐다가 킨 후에 매트랩을 다시 실행한다. 8. 된다.. 더보기
[디버깅] gprof을 이용해서 프로파일링하기 The GNU profiler gprof is a useful tool for measuring the performance of a program--it records the number of calls to each function and the amount of time spent there, on a per-function basis. Functions which consume a large fraction of the run-time can be identified easily from the output of gprof. Efforts to speed up a program should concentrate first on those functions which dominate the tota.. 더보기
노트북 CPU 순위 현재 내 노트북은 T9550, 69위 순위CPU 명코어개수1Intel Core i7-3920XM42Intel Core i7-3820QM43Intel Core i7-3720QM44Intel Core i7-2960XM45Intel Core i7-2860QM46Intel Core i7-3615QM47Intel Core i7-3610QM48Intel Core i7-2920XM49Intel Core i7-2760QM410Intel Core i7-2820QM411Intel Core i7-3612QM412Intel Core i7-2720QM413Intel Core i7-2675QM414Intel Core i7-2670QM415Intel Core i7-2635QM416Intel Core i7-2630QM417Intel.. 더보기