Re: [GENERAL] Calculating Minkowski distance between two rows

2016-04-25 Thread Begin Daniel
t: Re: [GENERAL] Calculating Minkowski distance between two rows Hi: On Mon, Apr 25, 2016 at 4:26 PM, Babak Alipour wrote: > That is correct. The function I've written only works when the two > tables are named table_train and table_test; is it possible to > generalize that to tak

Re: [GENERAL] Calculating Minkowski distance between two rows

2016-04-25 Thread Francisco Olarte
Hi: On Mon, Apr 25, 2016 at 4:26 PM, Babak Alipour wrote: > That is correct. The function I've written only works when the two tables > are named table_train and table_test; is it possible to generalize that to > take in any two tables? And only when all table_train columns are numbers AND table

Re: [GENERAL] Calculating Minkowski distance between two rows

2016-04-25 Thread Adrian Klaver
On 04/25/2016 07:26 AM, Babak Alipour wrote: That is correct. The function I've written only works when the two tables are named table_train and table_test; is it possible to generalize that to take in any two tables? I'm heading out the door and off the top of my head: 1) Get tables names as

Re: [GENERAL] Calculating Minkowski distance between two rows

2016-04-25 Thread Babak Alipour
That is correct. The function I've written only works when the two tables are named table_train and table_test; is it possible to generalize that to take in any two tables? Thanks in advance. >Babak On Mon, Apr 25, 2016 at 10:24 AM, Adrian Klaver wrote: > On 04/25/2016 07:07 AM, Babak Alipour

Re: [GENERAL] Calculating Minkowski distance between two rows

2016-04-25 Thread Adrian Klaver
On 04/25/2016 07:07 AM, Babak Alipour wrote: Greetings everyone, I'm a novice plpgsql user. For an application, I'm trying to write a user-defined function that takes a row of some table (let's say with k fields) and takes another row from another table (again with k fields); then calculate the

[GENERAL] Calculating Minkowski distance between two rows

2016-04-25 Thread Babak Alipour
Greetings everyone, I'm a novice plpgsql user. For an application, I'm trying to write a user-defined function that takes a row of some table (let's say with k fields) and takes another row from another table (again with k fields); then calculate the Euclidean, Manhattan or generally Minkowski dis