package exp.twostep;



//import partialMutualInformation2.PartialMutualInformation;

public class MI {
	
	static{
		System.loadLibrary("JNI_PMI");
	}
	public static native double partialMutualInformation(double[][] a, double[][] b, double[][] c, int k);
	public static native double mutualInformation(double[][] a, double[][] b, int k);
	public static native void dispose();
	
//	int k = 0;
//	int N = 0;
//	partialMutualInformation2.PartialMutualInformation p = null;
//	
//	
//	public double partialMutualInformation(double[][] a, double[][] b, double[][] c, int k) throws InvalidAlgorithmParameterException{
//		if (this.k == 0 || this.k != k || this.N != a[0].length || this.N ==0 || p == null){
//			p = new PartialMutualInformation(k, a[0].length);
//		}
//		return p.calculatePartialMutualInformation_m2(a, b, c);
//	}
	
}
