Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added Week01/__pycache__/info_arda_korkmaz.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_arda_sevinc.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_baris_gules.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_berat_uzdil.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_bugra_ozturk.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_buse_cici.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_deniz_akgul.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_duru_kiran.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_ebru_koksal.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_ecenaz_unsal.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_efe_ozdemir.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_enes_yigit.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_eren_ozturk.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_hilmi_aydin.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_ikranur_kara.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_kayra_oz.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_mehmet_gok.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_mejder_avci.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_mert_isguzar.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_mert_yavas.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_mirza_german.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_omer_kayaalp.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_oner_ozer.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_ozgur_yoyler.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_pelin_akkus.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_riza_arslan.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_sefa_sagirli.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_semi_kazar.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_sude_naz_ay.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_sude_turunc.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_ufuk_akkuzu.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_yagiz_cengiz.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Week01/__pycache__/info_yigit_boncuk.cpython-313.pyc
Binary file not shown.
Binary file added Week01/__pycache__/info_yigit_dastan.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added Week02/__pycache__/data.cpython-313.pyc
Binary file not shown.
Binary file not shown.
Binary file not shown.
7 changes: 7 additions & 0 deletions Week02/weighted_baris_bursali.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
import random

def weighted_srs(data, n, weights, with_replacement=False):
if with_replacement or weights is None:
return random.choices(data, k=n) if with_replacement else random.sample(data, n)
population = sum([[data[i]] * weights[i] for i in range(len(data))], [])
return random.sample(population, n)
5 changes: 5 additions & 0 deletions Week03/shifted_baris_bursali.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
def shifted(sample):
n = len(sample)
mean = sum(sample) / n
median = sorted(sample)[n // 2] if n % 2 != 0 else (sorted(sample)[n // 2 - 1] + sorted(sample)[n // 2]) / 2
return abs(mean - median) / abs(mean) * 100
Loading