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
// Hide gist line-numbers if there are a few | |
$('.gist').each( | |
function() { if($(this).find('.gist-data').height() < 80) { | |
$(this).find('.line-numbers').hide(); | |
} | |
} | |
); | |
// Hide gist meta | |
$('.gist-meta').hide(); |
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
log_factorial_by_stirling_approximation = @(n)(log(2*pi*n)/2 + n.*log(n) - n); |
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
m = 10000; % Deney sayısı | |
n = 12; % Her deneyde ortalaması alınan rastsal değişken sayısı | |
% x'ler tek tek rastsal değişkenler olsun, y ise onların ortalaması olan rassal değişken | |
y = zeros(1,m); | |
for i = 1:m | |
u = rand(1,n); % Tekdüze dağılım | |
y(i) = sum(u); | |
end | |
z = (y-n/2)/sqrt(n/12); |
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
x = 0:0.01:20; | |
y1 = 200*exp(-0.05*x).*sin(x); | |
y2 = 0.8*exp(-0.5*x).*sin(10*x); | |
[ax,h1,h2] = plotyy(x,y1,x,y2,'plot'); |
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
\usepackage[utf8x]{inputenc} |
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
clc,clear | |
A = [0.7 -0.3; 0.3 0.7] * [5 0; 0 1]; % Ölçekleme ve döndürme | |
% A = [4 -0.2;2 0.7]; % Başka bir dönüşüm | |
xRef= [0 0]'; % Uzaklık için referans nokta. Merkez için [0 0]' yapın | |
N = 5000; % Nokta sayısı | |
X = A*randn(2,N); | |
% A ile dönüştürülmüş (yaklaşık) birim çember içindeki rastgele noktalar | |
C = cov(X'); % Kovaryans (değişinti) matrisi |
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 -*- | |
""" | |
Merkezi limit teoreminin illüstrasyonu | |
@author: İsmail Arı, http://ismailari.com | |
@date: 31.03.2011 | |
""" | |
import scipy, scipy.stats | |
import numpy as np |
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 python | |
# -*- coding: utf-8 -*- | |
import os, random, time, shutil | |
if __name__ == "__main__": | |
kaynakKlasor = u'/home/ismail/Music' | |
hedefKlasor = u'/media/MUZIKCALAR/Music/' + time.ctime()[4:10] + '/' | |
enCokDosyaSayisi = 160 |
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
x = 1:0.25:5; | |
y = 1/2*x + 1; | |
y = y + rand(size(y)); | |
plot(x, y, '*k') | |
axis equal | |
axis([0 6 0 5]) |
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
% Matrisi tanımlayalım | |
A = [ 0.3*cos(pi/6) 1.2*sin(pi/6) | |
0.3* -sin(pi/6) 1.2*cos(pi/6)]; | |
% Figür ayarlarını yapalım | |
fig1 = subplot(1,2,1); | |
hold on; axis equal; title('U') | |
fig2 = subplot(1,2,2); | |
hold on; axis equal; title('V') | |
linkaxes([fig1, fig2]); |
NewerOlder