タグ

c++に関するsentohのブックマーク (4)

  • TF1の諸々 - 微妙録

    TF1 *func = new TF1(“func”, ”x*sin(x)”, r1, r2);//r1,r2は定義範囲。フィット範囲とは別。 func->Draw();//表示する。 システム定義関数の利用方法 "TMath::..."を指定すれば良い。 例えば、 expo - exp([0]+[1]*x) //これ間違いやすい。注意! gaus - [0]*exp(-0.5*( (x-[1])/[2])**2) //規格化とかしてくれてはいない。注意! gausn- [0]*exp(-0.5*( (x-[1])/[2])**2) /(sqrt(2*pi)*[2]) ) //normalized が欲しいときはこっちを使おう。 polN - [0]+[1]*x+[2]*x**2+…+[N]*x**N TF1 *func = new TF1(“func”, ”TMath::Breit

    TF1の諸々 - 微妙録
  • Cern ROOT quick reference for paw users

    paw使いでC++をかじった人のためのROOT覚え書き(つまり自分専用)。 コマンドパーサ (.で始まる人達 --- .の前に暗黙の親クラスがあると思えばよい) .h --- ヘルプ .q --- rootの終了 .L hoge.C ファイル"hoge.C"をロードする .x hoge.C マクロファイル"hoge.C"を実行する .! <command> --- シェルで<command>を実行 逆引きROOT関数 一般的な操作 リセット gROOT->Reset(); file open h/file TFile *f1 = new TFile("foobar.root"); ntuples nt/cre TNtuple(char* [name], char* [title], char* [varlist]); nt/pl [*TNtuple]->Draw("変数名"); [*TNt

  • openFrameworks

    openFrameworks is an open source C++ toolkit for creative coding. download Grab the most recent release (0.12.0) and follow the setup guide to get openFrameworks running. documentation Reference for openFrameworks classes, functions and addons. You can also check the tutorials section. forum The forum is a place to meet other people working with openFrameworks. It's a place to share your work, or

  • openFrameworks入門

    OpenFrameworksの紹介 OpenFrameworksを使ってみる 簡単なプログラムを実行 OpenFramwroskをiPhoneで使ってみる 簡単なアニメーションを作成してみる OpneFrameworksについて OpenFrameworksとは、シンプルで直感的なフレームワークによって、創作活動を手助けするようにデザインされた、C++のライブラリ オフィシャルページ Zach LiebermanとTheodore Watson、Arturo Castroを中心に開発が進められている Processingからの強い影響 C++の細かな知識なしに、クリエイティブな部分のみコーディングすることで、高度なアプリケーションを開発可能 openFrameworksから影響を受けたプロジェクトも派生している → Cinder made with openFrameworks from

    openFrameworks入門
  • 1