Commit 1b0e6900 authored by Can Pervane's avatar Can Pervane

added a test_statisctics file, where we can write various function todo...

added a test_statisctics file, where we can write various function todo different test statistics. which can be used to compare two samples
parent 594b0774
from scipy import stats
def ks(dist1, dist2):
"""
2 sample kolmogorov-smirnov test
"""
kd_dict = {}
ks_statistics, p = stats.ks_2samp(dist1, dist2)
ks_dict['statistics'] = ks_statistics
ks_dict['p'] = p
return ks_dict
test = {
"ks": ks,
}
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment