From: Virgile Beddok <virgile.beddok@igd.fraunhofer.de>
To: pgsql-novice@postgresql.org
Cc: pgsql-advocacy@postgresql.org
Cc: pgsql-admin@postgresql.org
Subject: Function which gives back the nearest neighbours of a requested value
Date: Fri, 25 Mar 2005 19:36:16 +0100 (CET)
Message-ID: <2657.146.140.8.144.1111775776.squirrel@webmail.igd.fraunhofer.de> (raw)
Hi!
I'm looking for an existing function which allows me to search the nearest
neighbours of the requested value.
A simple example: if I search the value "2", and my table doesn't contain
it, but only contains "0" and "10", as "nearest neighbours", then it will
give me back these values : "0" and "10".
Could you please tell me if such function already exists in Postgresql,
for one-dimensional objects, and also for multi-dimensional objects.
Thanks a lot in advance.
Virgile Beddok
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-admin@postgresql.org
Cc: virgile.beddok@igd.fraunhofer.de, pgsql-novice@postgresql.org, pgsql-advocacy@postgresql.org
Subject: Re: Function which gives back the nearest neighbours of a requested value
In-Reply-To: <2657.146.140.8.144.1111775776.squirrel@webmail.igd.fraunhofer.de>
References: <2657.146.140.8.144.1111775776.squirrel@webmail.igd.fraunhofer.de>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox