RE: Another proposal for a "split" function to complement "mid"
Maybe not make it Level 1 at all, keep it Level 2 function only?
Crudely speaking, if we use IEEE standard, where a number is represented as a normalized mantissa and an exponent, the number of values below a given number is, crudely speaking, the binary sequence forms by exponent and mantissa (it is not as simple since we need to take into account possibility of negative signs). So, crudely speaking, each floating point number gets easily transformed into a binary integer N -- so that this floating point number is the N-th of all floating point numbers represented in this format. Then, once we have N- and N+ for two ends of the interval, we take a midpoint (N- + N+)/2 and transform this midpoint into a floating point number.
-----Original Message-----
From: stds-1788@xxxxxxxx [mailto:stds-1788@xxxxxxxx] On Behalf Of Michel Hack
Sent: Monday, March 19, 2012 9:52 AM
To: stds-1788
Subject: Another proposal for a "split" function to complement "mid"
How about the following fairly simple idea:
* If interval contains zero, return AM (Arithmetic Mean)
* Otherwise, return AM(AM, GM) where GM is the signed Geometric Mean.
Basically this is 1.5 steps of the AGM.
Michel.
---Sent: 2012-03-19 15:55:30 UTC