Skip to content

Commit

Permalink
Fixed major bug. Test (FFI) was ignoring pvalues
Browse files Browse the repository at this point in the history
Fixed a major bug. FFI version was completely ignoring different values of p-value when calling function Test.
  • Loading branch information
denismr authored Dec 18, 2019
1 parent ba6492f commit c6bc988
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion IncrementalKS/FFI/c_wrapper.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ void IKS_DeleteIKS(IKS_WrappedPointer wp) {

int IKS_Test(IKS_WrappedPointer wp, double ca) {
auto * iks = reinterpret_cast<IncrementalKS<std::default_random_engine>*>(wp.pointer);
return iks->Test() ? 1 : 0;
return iks->Test(ca) ? 1 : 0;
}

double IKS_KS(IKS_WrappedPointer wp) {
Expand Down

0 comments on commit c6bc988

Please sign in to comment.