--------------enig5C0FE26A41A20C74CAE55095
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: quoted-printable

Roger Braun wrote:
> This does not solve the problem.

OK OK, but edge detection is also possible.

irb(main):001:0> a =3D [0,15,35,99,100,205,300]
=3D> [0, 15, 35, 99, 100, 205, 300]
irb(main):002:0> edges =3D a.each_cons(2).group_by {|(x, y)|
irb(main):003:1*     y - x > 30
irb(main):004:1> }[true].map {|i|
irb(main):005:1*     i[0]
irb(main):006:1> }
=3D> [35, 100, 205]
irb(main):007:0> a.group_by {|i| edges.find_index {|j| i <=3D j } }
=3D> {0=3D>[0, 15, 35], 1=3D>[99, 100], 2=3D>[205], nil=3D>[300]}



--------------enig5C0FE26A41A20C74CAE55095
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iEYEARECAAYFAkui+t0ACgkQuTXPUnA5eMJq5QCfRJHw1KRvr84WQsWXTJqsBMOz
eX4An1LHKyhFuABQvKqfuemlrhT9INpL
=vYEq
-----END PGP SIGNATURE-----

--------------enig5C0FE26A41A20C74CAE55095--