Sampler uses PredictorFactory to do the hard work of creating distance db and preditions.
processapk uses Sampler to pick samples
apkdbdirectory in order to create apkdb