MathGroup Archive 2006

[Date Index] [Thread Index] [Author Index]

Search the Archive

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
>



  • Prev by Date: Re: "In progress" saving of data collected using Reap/Sow
  • Next by Date: Re: Issue
  • Previous by thread: Re: Conditions with Statistical Functions
  • Next by thread: Re: Conditions with Statistical Functions