calculate mean in UnweightedGKL
adapted TestProb for new pylearn interface