In matlab, compile MEX-C files using the following commands:

	mex Chistog.c
	mex Clearn.c
	mex Ctesting.c
	mex Ctransform.c

and run:

	activebasis

to perform cross validation experiments on active basis models.


Output:

	out_run<i>.mat

contains the testing ROC, average precision, etc for the i-th cross-validation run.

	model_run<i>.mat

contains the learned active basis template for the i-th cross-validation run.

	naturalStat_run<i>.mat

contains natural statistics collected in the i-th cross-validation run.