Mathematica 9 is now available
Services & Resources / Wolfram Forums / MathGroup Archive
-----

MathGroup Archive 2008

[Date Index] [Thread Index] [Author Index]

Search the Archive

Re: an easy one?

  • To: mathgroup at smc.vnet.net
  • Subject: [mg88890] Re: an easy one?
  • From: Szabolcs Horvát <szhorvat at gmail.com>
  • Date: Tue, 20 May 2008 06:52:56 -0400 (EDT)
  • Organization: University of Bergen
  • References: <g0tr2f$mn5$1@smc.vnet.net>

Francisco Gutierrez wrote:
> I have a code (for clustering) that works well with FixedPointList.
>   It takes the following form:
>   FixedPointList[veamos[dataset,#]&, prototipos,10]
>    
>   where veamos is a function that acts on the dataset and prototipos,
>   and prototipos is also a list of lists (for example {{5,5},{10,10}} )
>    
>   But of course using FixedPointList is imperfect. I want to use NestWhileList instead, with a criterion of termination acting on prototipos (i.e., if the absolute value of the substraction of the penultimate prototipos and the last prototipos is less than a certain amount, say 0.01, then stop).
>    
>   But I haven´t been able.
>   Can somebody help me?

Have you tried using the SameTest option of FixedPointList?


  • Prev by Date: sending programatically output to clipboard
  • Next by Date: Re: Implementing a array assignment for custom data structure
  • Previous by thread: an easy one?
  • Next by thread: Re: an easy one?