Re: $table_model() and closest point "D" interpolation

From: Dave Miller <David.L.Miller@freescale.com>
Date: Fri May 06 2011 - 11:49:51 PDT

Hello Cary,
yes that has always been my interpretation on this, if the distance between
both points is exactly the same, round away from zero.

Regards
Dave

On 05/05/2011 06:07 PM, Cary R. wrote:
> It's fairly obvious how closest point interpolation should work in general, but
> the standard does not specify what should be done for a tie (you're exactly half
> way between two points). For example if I have points at 1.0 and 2.0 which one
> should be used for an independent value of 1.5?
>
> My first assumption would be to pick round away from zero since that matches
> what is done when converting a real to an integer. Doing this gives the
> consistent rule, when breaking a tie select the value/element farthest from
> zero.
>
> I also want to publicly thank Dave for his answers to my previous $table_model()
> questions.
>
> Regards,
>
> Cary
>
>

-- 
==============================================
-- David Miller
-- Design Technology (Austin)
-- Freescale Semiconductor
-- Ph : 512 996-7377 Fax: x7755
==============================================
-- 
This message has been scanned for viruses and
dangerous content by MailScanner, and is
believed to be clean.
Received on Fri May 6 11:50:18 2011

This archive was generated by hypermail 2.1.8 : Fri May 06 2011 - 11:50:28 PDT