MathGroup Archive 2005

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

Search the Archive

Re: Weighted histogram

  • To: mathgroup at smc.vnet.net
  • Subject: [mg62268] Re: [mg62254] Weighted histogram
  • From: Bob Hanlon <hanlonr at cox.net>
  • Date: Fri, 18 Nov 2005 05:57:56 -0500 (EST)
  • Reply-to: hanlonr at cox.net
  • Sender: owner-wri-mathgroup at wolfram.com

Needs["Graphics`Graphics`"];

a={2,5,3,8};
w={.1,.2,.3,.4};

Histogram[a,FrequencyData->True];

Histogram[w,FrequencyData->True];

Histogram[a*w,FrequencyData->True];


Bob Hanlon

> 
> From: kalymereau at yahoo.fr
To: mathgroup at smc.vnet.net
> Date: 2005/11/17 Thu PM 05:03:49 EST
> Subject: [mg62268] [mg62254] Weighted histogram
> 
> Hi MathGroup
> 
> With Histogram[{a1,a2,...,an}] one can represent the histogram of
> values in a list. I have a (classical) problem where each value ai has
> to be weighted by some real positive value wi. What is the simplest way
> to represent the histogram of values {a1,a2,...,an} ponderated by a
> list {w1,w2,...,wn} ?
> 
> Thanks
> 
> Geronimo
> 
> 


  • Prev by Date: Re: Re: Types in Mathematica
  • Next by Date: java method in NDsolve
  • Previous by thread: Re: Weighted histogram
  • Next by thread: Re: Weighted histogram