Skip to content

Instantly share code, notes, and snippets.

@ronekko
ronekko / blend_shape.py
Created January 31, 2018 10:01
2d blend shapeの練習
# -*- coding: utf-8 -*-
"""
Created on Sun Jan 28 21:16:31 2018
@author: ryuhei
"""
import numpy as np
import matplotlib.pyplot as plt
# -*- coding: utf-8 -*-
"""
Created on Sat Jan 6 23:41:17 2018
@author: sakurai
"""
import numpy as np
import matplotlib.pyplot as plt
from sklearn.metrics import pairwise_distances
@ronekko
ronekko / chainer_gan_1d_gaussian.py
Created December 19, 2017 06:08
Generative adversarial network (GAN) for 1-dimensional Gaussian
# -*- coding: utf-8 -*-
"""
Created on Fri Dec 15 15:22:04 2017
@author: sakurai
"""
import matplotlib.pyplot as plt
import numpy as np
# -*- coding: utf-8 -*-
"""
Created on Thu Nov 24 21:49:10 2016
@author: ryuhei
このスクリプトは「カメラで世界を撮影する」ということが幾何学的にはどう定式化されるのかを説明するためのものです。
ピンホールカメラモデルにおいて、世界のある座標の1点から出た光線が、撮像素子のどの画素にヒットするのか、
ということを計算しています。点、ピンホール、撮像素子の物理的な位置関係を考えながら外部パラメタや内部パラメタを
色々変えてレンダリングしてみて、撮影される画像と照らし合わせてみてください。
# -*- coding: utf-8 -*-
"""
Created on Wed Dec 6 19:51:57 2017
@author: sakurai
"""
import numpy as np
from basic_distributions import (
ProbabilityDistribution, Multinomial, Gaussian, Poisson
# -*- coding: utf-8 -*-
"""
Created on Mon Jun 29 14:55:33 2015
@author: sakurai
"""
import numpy as np
import matplotlib.pyplot as plt
from sklearn import preprocessing
@ronekko
ronekko / basic_distributions.py
Last active December 1, 2017 10:48
Basic probability distributions
# -*- coding: utf-8 -*-
"""
Created on Thu Jun 25 23:08:22 2015
@author: ryuhei
"""
import numpy as np
import matplotlib.pyplot as plt
# -*- coding: utf-8 -*-
"""
Created on Tue May 21 12:50:16 2013
@author: ryuhei
"""
import numpy as np
import matplotlib.pyplot as plt
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
@ronekko
ronekko / kinematics_basic.py
Last active October 8, 2017 09:01
numpy, matplotlibを使った一番簡単な順運動学の例
# -*- coding: utf-8 -*-
"""
Created on Sun Oct 8 17:42:55 2017
@author: ryuhei
"""
import numpy as np
import matplotlib.pyplot as plt