Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.soft-sys.math.mathematica > #1330 > unrolled thread

Re: Fit Gaussian function to histogram

Started by"Kevin J. McCann" <Kevin.McCann@umbc.edu>
First post2011-03-31 09:02 +0000
Last post2011-03-31 09:02 +0000
Articles 1 — 1 participant

Back to article view | Back to comp.soft-sys.math.mathematica

This discussion starts older than the indexed window; earlier articles aren't shown. The article labeled Started by below is the oldest one visible, not the original post.


Contents

  Re: Fit Gaussian function to histogram "Kevin J. McCann" <Kevin.McCann@umbc.edu> - 2011-03-31 09:02 +0000

#1330 — Re: Fit Gaussian function to histogram

From"Kevin J. McCann" <Kevin.McCann@umbc.edu>
Date2011-03-31 09:02 +0000
SubjectRe: Fit Gaussian function to histogram
Message-ID<in1fv4$4j4$1@smc.vnet.net>
Histogram gives the plot, but if you want the actual bin counts, use 
BinCounts. The mma help will give you the options to call it; I usually use

BinCounts[data,dx] in which dx is the bin width. You can also specify 
all the bins with BinCounts[data,{xmin,xmax,dx}]. It is then easy to 
convert the counts to probability densities.

Kevin

On 3/29/2011 7:54 AM, cubsfan334 wrote:
> Hi,
>
> I realize that I can generate a histogram from a data set using the
> Histogram[{data},bin size] command, yet this only seems to create a
> graphic.  Is there anyway to fit a function (preferably Gaussian) to
> the histogram Mathematica creates?
>
> Thanks!
>

[toc] | [standalone]


Back to top | Article view | comp.soft-sys.math.mathematica


csiph-web