Vertica – Writing simple and effective User Defined Functions: normal distribution

Moderator: NorbertKrupa

Post Reply
User avatar
JimKnicely
Site Admin
Site Admin
Posts: 1825
Joined: Sat Jan 21, 2012 4:58 am
Contact:

Vertica – Writing simple and effective User Defined Functions: normal distribution

Post by JimKnicely » Tue Jan 31, 2017 10:21 pm

Great post by Maurizio Felici:

Excerpt:
Vertica, like other databases, provides a function – RANDOM() – returning uniformely-distributed random floats in [0,1). However, the predominant distribution for many measurable physical and social phenomenons is the Gaussian (normal) distribution. Normal distribution is ubiquitous: people’s height or weight, IQ scores, snowflakes size, the speed of molecules in ideal gas,… all follow (or are very well approximated by) the normal distribution.

The scope of this article is to show how easily we can “extend the horizon” of the native Vertica functionalities by writing our own functions. We’re going to implement a function returning normally-distributed numbers using two different methods: User Defined SQL Functions and User Defined Extension (UDx).

Check it out here:
https://www.linkedin.com/pulse/vertica- ... =prof-post
Jim Knicely

Image

Note: I work for Vertica. My views, opinions, and thoughts expressed here do not represent those of my employer.

Post Reply

Return to “Vertica Links”