制御シミュレーションに関するプログラムです。 プロジェクトはbitbucketに置いてあります。
This file contains hidden or 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
| %# | |
| %# title: Calibration.m | |
| %# brief: キャリブレーションされていないステレオイメージの平行化 | |
| %# | |
| %# url: https://jp.mathworks.com/help/vision/examples/uncalibrated-stereo-image-rectification.html | |
| %# | |
| I1 = imread('yellowstone_left.png'); | |
| I2 = imread('yellowstone_right.png'); |
This file contains hidden or 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
| ' アクティブなシート内のChartObjectのプロットエリアを選択中のものと揃える | |
| Sub SetPlotArea() | |
| Dim cht As ChartObject | |
| For Each cht In ActiveSheet.ChartObjects | |
| With ActiveChart.PlotArea | |
| cht.Chart.PlotArea.Left = .Left | |
| cht.Chart.PlotArea.Top = .Top | |
| cht.Chart.PlotArea.Width = .Width | |
| cht.Chart.PlotArea.Height = .Height |
This file contains hidden or 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
| # ファイル名の先頭3文字にリネームする | |
| ls | % {$NewName = $_.BaseName.substring(0, 3} + ".txt"; mv $_.Name $NewName } |
This file contains hidden or 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
| #include "./Gene.hpp" | |
| #include "./individual.hpp" | |
| #include "./GeneticOperator.hpp" | |
| #include "./GA.hpp" | |
| void GA::selectCrossoverMethod(GA::CrossoverMethod type) | |
| { | |
| switch(type) { | |
| case ONE_POINT: |
- 空白の除去
:%s/\s+//g
This file contains hidden or 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
| import sys | |
| import os | |
| if __name__ == "__main__": | |
| argvs = sys.argv | |
| argc = len(argvs) | |
| if argc != 2: | |
| print("Usage: # python {0} dirname".format(argvs[0])) |
This file contains hidden or 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
| % | |
| [X,Y] = meshgrid(-2:0.2:2); | |
| Z = X .* exp(-X.^2 - Y.^2); | |
| contour(X,Y,Z,10) |
This file contains hidden or 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
| // Astar.cpp | |
| // http://en.wikipedia.org/wiki/A* | |
| // Compiler: Dev-C++ 4.9.9.2 | |
| // FB - 201012256 | |
| #include <iostream> | |
| #include <iomanip> | |
| #include <queue> | |
| #include <string> | |
| #include <math.h> | |
| #include <ctime> |
This file contains hidden or 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
| // Use Gists to store code you would like to remember later on | |
| console.log(window); // log the "window" object to the console |