Re: Conditions with Statistical Functions

*To*: mathgroup at smc.vnet.net*Subject*: [mg66146] Re: [mg66091] Conditions with Statistical Functions*From*: Gregory Lypny <gregory.lypny at videotron.ca>*Date*: Sun, 30 Apr 2006 04:22:27 -0400 (EDT)*References*: <16568608.1146308002406.JavaMail.root@eastrmwml01.mgt.cox.net>*Sender*: owner-wri-mathgroup at wolfram.com

Yes, thanks Bob. But what about a matrix, where Mean operates column- wise? Is there a compact statement where the mean will be calculated over the values that exceed 100 in each column all in one shot? What I've been doing is looping Select across the columns using Do and applying Mean on each pass. I just thought there might be something more efficient, if not more elegant. Regards, Greg On Sat, Apr 29, 2006, at 6:53 AM, Bob Hanlon wrote: > x={10,20,150,200,250}; > > Mean[Select[x,#>100&]] > > 200 > > > Bob Hanlon >