ENH: Do not create a throwaway class at every function call
ENH: Do not create a throwaway class at every function call

The namedtuple class creation is expensive and can dominate the
execution time. Move the class creation out of stat functions
into module namespace.

WarrenWeckesser/scipy,pyramania/scipy,aeklant/scipy,Eric89GXL/scipy,niknow/scipy,Shaswat27/scipy,andim/scipy,maniteja123/scipy,kalvdans/scipy,nonhermitian/scipy,andyfaff/scipy,lhilt/scipy,kalvdans/scipy,jor-/scipy,lhilt/scipy,gfyoung/scipy,chatcannon/scipy,jakevdp/scipy,maniteja123/scipy,anielsen001/scipy,jakevdp/scipy,surhudm/scipy,woodscn/scipy,pizzathief/scipy,endolith/scipy,gdooper/scipy,mdhaber/scipy,aeklant/scipy,jjhelmus/scipy,gertingold/scipy,Shaswat27/scipy,andim/scipy,andyfaff/scipy,ilayn/scipy,lhilt/scipy,pschella/scipy,jjhelmus/scipy,woodscn/scipy,e-q/scipy,dominicelse/scipy,scipy/scipy,Shaswat27/scipy,anntzer/scipy,matthewalbani/scipy,endolith/scipy,kleskjr/scipy,argriffing/scipy,arokem/scipy,aarchiba/scipy,minhlongdo/scipy,scipy/scipy,WillieMaddox/scipy,matthew-brett/scipy,dominicelse/scipy,pizzathief/scipy,matthewalbani/scipy,jjhelmus/scipy,jjhelmus/scipy,woodscn/scipy,ilayn/scipy,josephcslater/scipy,fredrikw/scipy,woodscn/scipy,kalvdans/scipy,minhlongdo/scipy,jamestwebber/scipy,scipy/scipy,arokem/scipy,jakevdp/scipy,mikebenfield/scipy,grlee77/scipy,WillieMaddox/scipy,josephcslater/scipy,matthewalbani/scipy,arokem/scipy,nmayorov/scipy,anntzer/scipy,nmayorov/scipy,perimosocordiae/scipy,mikebenfield/scipy,fredrikw/scipy,haudren/scipy,grlee77/scipy,josephcslater/scipy,mdhaber/scipy,gdooper/scipy,nonhermitian/scipy,befelix/scipy,person142/scipy,tylerjereddy/scipy,vigna/scipy,pbrod/scipy,scipy/scipy,bkendzior/scipy,perimosocordiae/scipy,grlee77/scipy,Stefan-Endres/scipy,pbrod/scipy,maniteja123/scipy,e-q/scipy,pschella/scipy,maniteja123/scipy,dominicelse/scipy,larsmans/scipy,zerothi/scipy,pbrod/scipy,aeklant/scipy,woodscn/scipy,niknow/scipy,nmayorov/scipy,perimosocordiae/scipy,WarrenWeckesser/scipy,WillieMaddox/scipy,WarrenWeckesser/scipy,anielsen001/scipy,kalvdans/scipy,pizzathief/scipy,Newman101/scipy,argriffing/scipy,person142/scipy,zerothi/scipy,andyfaff/scipy,apbard/scipy,surhudm/scipy,aarchiba/scipy,person142/scipy,rgommers/scipy,tylerjereddy/scipy,Stefan-Endres/scipy,Newman101/scipy,kleskjr/scipy,scipy/scipy,niknow/scipy,woodscn/scipy,perimosocordiae/scipy,jakevdp/scipy,behzadnouri/scipy,endolith/scipy,aeklant/scipy,nmayorov/scipy,grlee77/scipy,aarchiba/scipy,surhudm/scipy,Stefan-Endres/scipy,aarchiba/scipy,Shaswat27/scipy,josephcslater/scipy,pyramania/scipy,niknow/scipy,Eric89GXL/scipy,matthew-brett/scipy,mikebenfield/scipy,pyramania/scipy,perimosocordiae/scipy,kleskjr/scipy,sriki18/scipy,anielsen001/scipy,andyfaff/scipy,e-q/scipy,larsmans/scipy,zerothi/scipy,zerothi/scipy,Newman101/scipy,gertingold/scipy,nmayorov/scipy,jjhelmus/scipy,jamestwebber/scipy,jor-/scipy,rgommers/scipy,bkendzior/scipy,minhlongdo/scipy,chatcannon/scipy,sriki18/scipy,WarrenWeckesser/scipy,Gillu13/scipy,kleskjr/scipy,WillieMaddox/scipy,Shaswat27/scipy,haudren/scipy,minhlongdo/scipy,arokem/scipy,behzadnouri/scipy,gfyoung/scipy,jakevdp/scipy,jor-/scipy,haudren/scipy,rgommers/scipy,matthew-brett/scipy,sriki18/scipy,Gillu13/scipy,Newman101/scipy,jamestwebber/scipy,larsmans/scipy,mikebenfield/scipy,befelix/scipy,gertingold/scipy,Stefan-Endres/scipy,matthew-brett/scipy,haudren/scipy,apbard/scipy,pyramania/scipy,endolith/scipy,Gillu13/scipy,ilayn/scipy,nonhermitian/scipy,matthewalbani/scipy,matthew-brett/scipy,pschella/scipy,chatcannon/scipy,anielsen001/scipy,Eric89GXL/scipy,gdooper/scipy,matthewalbani/scipy,josephcslater/scipy,Newman101/scipy,fredrikw/scipy,argriffing/scipy,perimosocordiae/scipy,kleskjr/scipy,WarrenWeckesser/scipy,Newman101/scipy,Shaswat27/scipy,ilayn/scipy,grlee77/scipy,larsmans/scipy,endolith/scipy,gdooper/scipy,scipy/scipy,sriki18/scipy,tylerjereddy/scipy,zerothi/scipy,dominicelse/scipy,kalvdans/scipy,jor-/scipy,behzadnouri/scipy,ilayn/scipy,jamestwebber/scipy,andim/scipy,jor-/scipy,WillieMaddox/scipy,minhlongdo/scipy,haudren/scipy,person142/scipy,arokem/scipy,ilayn/scipy,pbrod/scipy,pschella/scipy,gfyoung/scipy,gfyoung/scipy,andim/scipy,mdhaber/scipy,niknow/scipy,jamestwebber/scipy,gdooper/scipy,chatcannon/scipy,Gillu13/scipy,maniteja123/scipy,aeklant/scipy,mdhaber/scipy,tylerjereddy/scipy,befelix/scipy,haudren/scipy,mdhaber/scipy,andim/scipy,surhudm/scipy,befelix/scipy,gertingold/scipy,mikebenfield/scipy,pschella/scipy,apbard/scipy,behzadnouri/scipy,bkendzior/scipy,Eric89GXL/scipy,e-q/scipy,dominicelse/scipy,zerothi/scipy,nonhermitian/scipy,anntzer/scipy,bkendzior/scipy,fredrikw/scipy,pyramania/scipy,andim/scipy,Gillu13/scipy,pizzathief/scipy,lhilt/scipy,argriffing/scipy,gfyoung/scipy,pbrod/scipy,Stefan-Endres/scipy,larsmans/scipy,larsmans/scipy,argriffing/scipy,anntzer/scipy,anntzer/scipy,befelix/scipy,tylerjereddy/scipy,WillieMaddox/scipy,apbard/scipy,andyfaff/scipy,nonhermitian/scipy,anielsen001/scipy,Eric89GXL/scipy,aarchiba/scipy,person142/scipy,behzadnouri/scipy,apbard/scipy,WarrenWeckesser/scipy,lhilt/scipy,sriki18/scipy,bkendzior/scipy,niknow/scipy,sriki18/scipy,endolith/scipy,chatcannon/scipy,andyfaff/scipy,maniteja123/scipy,rgommers/scipy,pbrod/scipy,fredrikw/scipy,chatcannon/scipy,vigna/scipy,fredrikw/scipy,mdhaber/scipy,gertingold/scipy,e-q/scipy,surhudm/scipy,vigna/scipy,minhlongdo/scipy,Stefan-Endres/scipy,pizzathief/scipy,kleskjr/scipy,anntzer/scipy,Eric89GXL/scipy,surhudm/scipy,behzadnouri/scipy,rgommers/scipy,vigna/scipy,anielsen001/scipy,argriffing/scipy,Gillu13/scipy,vigna/scipy