Skip to content

Instantly share code, notes, and snippets.

View dnishiyama85's full-sized avatar

d_nishiyama dnishiyama85

  • Japan
  • Tokyo
View GitHub Profile
@dnishiyama85
dnishiyama85 / Kalman.py
Created October 6, 2018 06:19
Kalman Smoothing
import numpy as np
import pandas as pd
import matplotlib
matplotlib.use('TkAgg')
import matplotlib.pyplot as plt
#df = pd.read_csv('./nile.csv')
df = pd.read_csv('./fat_percent.csv')
#df = pd.read_csv('./weight.csv')
@dnishiyama85
dnishiyama85 / TSP.jl
Created March 29, 2018 17:15
Julia言語による巡回セールスマン問題の焼きなまし法を使った解法
using PyPlot
const AREA_SCALE = 100
const NUM_POINTS = 100
# 頂点をランダムな位置に配置
function generate_points()
points = zeros(NUM_POINTS, 2)
points[:, 1] = rand(NUM_POINTS) * AREA_SCALE
points[:, 2] = rand(NUM_POINTS) * AREA_SCALE