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
require 'formula' | |
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class Pcl < Formula | |
homepage 'http://pointclouds.org' | |
head 'http://svn.pointclouds.org/pcl/trunk/' | |
depends_on 'cmake' => :build |
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
TEMPLATE = app | |
CONFIG += console | |
CONFIG -= qt | |
CONFIG -= x86_64 | |
CONFIG += x86 | |
QMAKE_CXXFLAGS_WARN_ON += "-Wno-unused-parameter" | |
unix:*-g++*: QMAKE_CXXFLAGS += -fpermissive | |
SOURCES += main.cpp \ | |
testapp.cpp \ |
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
# encoding: utf-8 | |
src = "jawiki-latest-all-titles-in-ns0" | |
dst = "wikipedia.csv" | |
File.open(dst, "w") do |fp| | |
File.open(src).each do |line| | |
line.chomp! | |
# いらない単語を飛ばす |
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
require "gnuplot" | |
def draw_chart(x, y) | |
Gnuplot.open do |gp| | |
Gnuplot::Plot.new(gp) do |plot| | |
y.each do |name, value| | |
if x.size == value[0].size | |
plot.data << Gnuplot::DataSet.new([x, value[0]]) do |ds| | |
ds.with = value[1] | |
ds.title = name |
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
require "gnuplot" | |
require "narray" | |
def draw_chart(x, y) | |
Gnuplot.open do |gp| | |
Gnuplot::Plot.new(gp) do |plot| | |
y.each do |name, value| | |
if x.size == value.size | |
plot.data << Gnuplot::DataSet.new([x, value]) do |ds| | |
ds.with = "lines" |
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
require "gnuplot" | |
require "narray" | |
def draw_chart(x, y) | |
Gnuplot.open do |gp| | |
Gnuplot::Plot.new(gp) do |plot| | |
y.each do |name, value| | |
if x.size == value.size | |
plot.data << Gnuplot::DataSet.new([x, value]) do |ds| | |
ds.with = "lines" |
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
# encoding: utf-8 | |
require "narray" | |
class DownhillSimplex | |
def initialize(objective_function, simplex_num, min, max, dimension) | |
@obj_func = objective_function | |
@alpha = 1.0 | |
@beta = 0.5 | |
@gamma = 2.0 | |
@dim = dimension |
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
require 'formula' | |
# Documentation: https://github.com/mxcl/homebrew/wiki/Formula-Cookbook | |
# PLEASE REMOVE ALL GENERATED COMMENTS BEFORE SUBMITTING YOUR PULL REQUEST! | |
class SharkSvn < Formula | |
homepage 'http://image.diku.dk/shark/sphinx_pages/build/html/index.html' | |
url 'svn://svn.code.sf.net/p/shark-project/code/trunk/Shark' | |
sha1 '' | |
version "3.0" |
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
#include "levmar.h" | |
Levmar::Levmar() | |
: param_num(0), | |
func_num(0), | |
iter_limit(0), | |
covar(NULL) | |
{ | |
// 最適化パラメータ初期化 | |
optimize_param[0] = LM_INIT_MU; |
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
strfitnessfct = 'frastrigin10'; | |
N = 10; | |
xmean = rand(N,1); | |
init_xmean = xmean; | |
sigma = 0.5; | |
stopfitness = 1e-10; | |
stopeval = 1e3*N^2; | |
lambda = 4+floor(300*log(N)); | |
mu = lambda/2; |
OlderNewer