Unix Technical Forum

Normal distribution et al.?

This is a discussion on Normal distribution et al.? within the Pgsql General forums, part of the PostgreSQL category; --> -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA512 Are there any statistical libraries for postgresql? I'd like to do something along ...


Go Back   Unix Technical Forum > Database Server Software > PostgreSQL > Pgsql General

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 04-09-2008, 05:56 PM
Jan Danielsson
 
Posts: n/a
Default Normal distribution et al.?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Are there any statistical libraries for postgresql?

I'd like to do something along the lines of:

UPDATE foo SET value=value+normdistsample(10, 0.2) WHERE id=1;

- --
Kind regards,
Jan Danielsson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFGdff2uPlHKFfKXTYRCmofAJ9Ni7CnVZdXuV13ppgKlU 0ZFIG4zgCgkQF3
NzMyvu4td86RBlw4R+CX2C4=
=qgWi
-----END PGP SIGNATURE-----

---------------------------(end of broadcast)---------------------------
TIP 5: don't forget to increase your free space map settings

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old 04-09-2008, 05:56 PM
Andrej Ricnik-Bay
 
Posts: n/a
Default Re: Normal distribution et al.?

On 6/18/07, Jan Danielsson <jan.m.danielsson@gmail.com> wrote:
> UPDATE foo SET value=value+normdistsample(10, 0.2) WHERE id=1;

Something like this?
http://www.joeconway.com/plr/



-- Cheers,
Andrej

---------------------------(end of broadcast)---------------------------
TIP 9: In versions below 8.0, the planner will ignore your desire to
choose an index scan if your joining column's datatypes do not
match

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old 04-09-2008, 05:56 PM
Jan Danielsson
 
Posts: n/a
Default Re: Normal distribution et al.?

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512

Andrej Ricnik-Bay wrote:
> On 6/18/07, Jan Danielsson <jan.m.danielsson@gmail.com> wrote:
>> UPDATE foo SET value=value+normdistsample(10, 0.2) WHERE id=1;

> Something like this?
> http://www.joeconway.com/plr/


That looks too good to be true.

Many thanks!

- --
Kind regards,
Jan Danielsson

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (NetBSD)

iD8DBQFGdf65uPlHKFfKXTYRCiLVAKCTvgHVsWkH1wtTiqg4w8 ieZeoR4wCeLuxn
Wo7L+94t2/4nP0gixz0q5fo=
=Koyh
-----END PGP SIGNATURE-----

---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old 04-09-2008, 05:56 PM
Michael Fuhr
 
Posts: n/a
Default Re: Normal distribution et al.?

On Mon, Jun 18, 2007 at 05:11:51AM +0200, Jan Danielsson wrote:
> Are there any statistical libraries for postgresql?
>
> I'd like to do something along the lines of:
>
> UPDATE foo SET value=value+normdistsample(10, 0.2) WHERE id=1;


Somebody else has mentioned PL/R. For this particular example see
also normal_rand() in contrib/tablefunc.

--
Michael Fuhr

---------------------------(end of broadcast)---------------------------
TIP 4: Have you searched our list archives?

http://archives.postgresql.org/

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old 04-09-2008, 05:56 PM
Brent Wood
 
Posts: n/a
Default Re: Normal distribution et al.?

Jan Danielsson wrote:
> Andrej Ricnik-Bay wrote:
> > On 6/18/07, Jan Danielsson <jan.m.danielsson@gmail.com> wrote:
> >> UPDATE foo SET value=value+normdistsample(10, 0.2) WHERE id=1;

> > Something like this?
> > http://www.joeconway.com/plr/

>
> That looks too good to be true.
>
> Many thanks!
>


See
http://www.bostongis.com/PrinterFrie...ql_plr_t ut01

for a new intro, pretty basic, but a good place to start

Brent Wood


---------------------------(end of broadcast)---------------------------
TIP 2: Don't 'kill -9' the postmaster

Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump


All times are GMT. The time now is 09:06 AM.


Powered by vBulletin® Version 3.6.5
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
SEO by vBSEO 3.2.0
www.UnixAdminTalk.com