Inheritted from this topic
How to find the duplicate items in the list
http://www.theswamp.org/index.php?topic=48646**********************************************************************************
Just grouping duplicate items is the trick what has been done by you masters.
Then I want to replace them According to the regulation I'll talk about.
1.
Says the original list as follow:
(foo '(1.0 1.1 1.19 1.2 1.2 1.21 1.22 1.23 1.25 1.3 )0.05)
;0.05 is fuzz
then we get the duplicate grouped list as follow:
((1.19 1.2 1.2 1.21 1.22 1.23 1.25))
and
if (1.19 1.2 1.2 1.21 1.22 1.23 1.25)
;;1.2 is the one which Appeared two times at least and Most times then others.
then replace the list
-->(1.2 1.2 1.2 1.2 1.2 1.2 1.2)
So the integral function as follow:
(foo '(1.0 1.1 1.19 1.2 1.2 1.21 1.22 1.23 1.25 1.3 )0.05)
;0.05 is fuzz
-->(1.0 1.1 1.2 1.2 1.2 1.2 1.2 1.2 1.2 1.3 )
2.
Another original list as follow:
(foo '(1.0 1.1 1.19 1.2 1.21 1.22 1.23 1.25 1.3 )-->0.05)
;0.05 is fuzz
then we get the duplicate grouped list as follow:
((1.19 1.2 1.21 1.22 1.23 1.25))
And
if (1.19 1.2 1.21 1.22 1.23 1.25)
;;Nothing Appear more then two times.
then replace the list
-->(1.2167 1.2167 1.2167 1.2167 1.2167 1.2167)
;;1.2167 is the average value of the list.
So the integral function as follow:
(foo '(1.0 1.1 1.19 1.2 1.21 1.22 1.23 1.25 1.3 )0.05)
;0.05 is fuzz
-->(1.0 1.1 1.2167 1.2167 1.2167 1.2167 1.2167 1.2167 1.3 )
The reason for doing that is I want to Calibrate the Coordinates of the Irregular table.
Maybe my method is useful.Every suggestion is welcome.
I think that will be a real Challenge.
Thanks!