This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% 2016/6/28 Yoshi R supported by Tokuma I @ Univercity of Tokyo | |
% The class files for RLS estimation. | |
% Explanation about this algorithm in Japanese is here | |
% ( URL : http://yoh.ise.ibaraki.ac.jp/edu/graduateschool/Project1.pdf ) | |
% 6/29 Updated # add property forgetting_function | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
classdef rls_const < handle | |
% Estimate Constant value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function [Cta, Pn, Rn] = rls_const_func(Cta_,Pn_,Rn_,Yn ,Zn) | |
%% forgetting factor (Time varying) | |
Rn = (1 - 0.01)*Rn_ + 0.01; | |
%% function | |
Num = Rn+Zn'*Pn_*Zn; | |
Pn = 1/Rn*( Pn_ - (Pn_ * Zn * Zn' * Pn_/Num) ); | |
Ln = Pn_*Zn /Num; | |
En = Yn - Zn.' * Cta_; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% 2016/6/28 Yoshi R supported by Tokuma I @ Univercity of Tokyo | |
% The class files for RLS estimation. | |
% Explanation about this algorithm in Japanese is here | |
% ( URL : http://yoh.ise.ibaraki.ac.jp/edu/graduateschool/Project1.pdf ) | |
% 6/29 Updated # add property forgetting_function | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
classdef rls_single < handle | |
% Estimate Constant value |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function Theta_est = rls_single_func(Yn ,Zn) | |
%% forgetting factor (Time varying) | |
persistent Rn ; | |
if isempty(Rn) | |
Rn = 0.95; | |
end | |
Rn = (1 - 0.01)*Rn + 0.01; | |
%% Covariance Mat and Estimated val | |
persistent Pn; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% SSD %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
function e = SSD(img1,img2) | |
if(~(size(img1)==size(img2))) | |
error('IMG size is differnt!'); | |
end | |
[height,width] = size(img1); | |
Total = height * width; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
% 2015 10/5 Yoshi R @ Univ. Tokyo | |
% input : 2 image with same size, grad:tone of image | |
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%% | |
function mu = MutualInformation(img1,img2, grad) | |
if(~(size(img1)==size(img2))) | |
error('IMG size is differnt!'); | |
end | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%% data | |
xhat = [ 1 2 3 4 1 2 3 4 -1 -2 -3 -4 -1 -2 -3 -4].'; | |
yhat = [ 1 2 3 4 -1 -2 -3 -4 1 2 3 4 -1 -2 -3 -4].'; | |
phat = [1 2 1 2 -1 5]; % a,b,c,d,e,f | |
Noise = 5*randn(16,1); | |
syms x y z | |
p = sym('p',[ 1 6]); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
% 印刷時のサイズ調整? | |
\AtBeginDvi{\special{pdf:tounicode 90ms-RKSJ-UCS2}} | |
%%%%% 和文用 %%%%% | |
\usepackage{bxdpx-beamer} | |
\usepackage{pxjahyper} % PDF目次文字化け回避(platexでは不要) | |
\usepackage{minijs}%和文用 | |
%%%%% スライドの見た目 %%%%% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python3 | |
# -*- coding: utf-8 -*- | |
""" | |
Created on Fri Jun 23 00:05:14 2017 | |
@author: ossyaritoori | |
""" | |
#coding: utf-8 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- coding: utf-8 -*- | |
# largely from here | |
# http://russeng.hatenablog.jp/entry/2015/06/16/004704 | |
import numpy | |
import cv2 | |
# get file name efficiently | |
from glob import glob | |
def main(): |
OlderNewer