Skip to content

Zahaib/Python-Kstest2

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 

Repository files navigation

Python-Kstest2

Pythonic implementation of MATLAB's kstest2

This script is an implementation of the Kolmogrov-Smirnov Test and is derived from Matlab's kstest2. It returns the H value, P value and the KS-test statistic. As input it requires two unsorted vectors, the alpha value and the type of test i.e. smaller, larger or unequal. The script is invoked with the following:

###Usage

python pyKstest.py vec1 vec2 alpha testtype

Where testtype may be 'smaller', 'larger', 'unequal'

It can also be called from an another Python script by first placing this script in your project directory and then importing it in your wrapper script:

###Importing in a Python Wrapper Script

import pyKstest as kstest2

[H,P,KS] = kstest2.main(vec1,vec2,alpha, 'larger')

About

Two sample one-sided Kolmogrov-Smirnov test, adapted from MATLAB's kstest2

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages