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


Groups > comp.graphics.apps.gnuplot > #827

Re: Gaussian function

From sfeam <sfeam@users.sourceforge.net>
Newsgroups comp.graphics.apps.gnuplot
Subject Re: Gaussian function
Followup-To comp.graphics.apps.gnuplot
Date 2012-01-06 22:36 -0800
Organization gnuplot development team
Message-ID <je8p5h$bka$1@dont-email.me> (permalink)
References <aef563b2-f1c4-454d-b20b-6cd369a976a6@l24g2000yqm.googlegroups.com>

Followups directed to: comp.graphics.apps.gnuplot

Show all headers | View raw


AndreLTR wrote:

> Hello,
> 
> Would anyone know how to plot a Gaussian function (normal
> distribution), please? 

  http://gnuplot.sourceforge.net/demo_cvs/transparent.html

> I'm using the function below,
> 
> normal(x, mu, sd) = (1/(sd*sqrt(2*pi)))*exp(-(x-mu)**2/(2*sd**2))

Looks OK.

> The plot I'd like to make has these parameters,
> 
> plot normal(x,70,5) title ""
> 
> I set the yrange from zero to one.  The issue at hand is that the
> function should have its maximum at 1 but it does not thus I suppose
> it is wrong.  However i can't figure it out where the error is.

You asked it for a mean (maximum) at 70., not 1.


> Therefore, I'd appreciate very much help or a proper function.
> 
> Thanks in advance,
> 
> Andre Luiz

Back to comp.graphics.apps.gnuplot | Previous | NextPrevious in thread | Next in thread | Find similar


Thread

Gaussian function AndreLTR <andreltramos@gmail.com> - 2012-01-06 20:48 -0800
  Re: Gaussian function sfeam <sfeam@users.sourceforge.net> - 2012-01-06 22:36 -0800
    Re: Gaussian function AndreLTR <andreltramos@gmail.com> - 2012-01-07 02:48 -0800
  Re: Gaussian function Ron Shepard <ron-shepard@NOSPAM.comcast.net> - 2012-01-07 00:43 -0600
  Re: Gaussian function Ingo Thies <ingo.thies@gmx.de> - 2012-01-07 10:44 +0100
    Re: Gaussian function AndreLTR <andreltramos@gmail.com> - 2012-01-07 03:27 -0800
      Re: Gaussian function Hans-Bernhard Bröker <HBBroeker@t-online.de> - 2012-01-08 16:57 +0100
    Re: Gaussian function AndreLTR <andreltramos@gmail.com> - 2012-01-07 03:29 -0800
      Re: Gaussian function brendan.halpin@ul.ie (Brendan Halpin) - 2012-01-07 12:00 +0000
  Re: Gaussian function "Alex van der Spek" <zdoor@xs4all.nl> - 2012-01-08 09:46 -0500

csiph-web