The Math Forum

Search All of the Math Forum:

Views expressed in these public forums are not endorsed by NCTM or The Math Forum.

Math Forum » Discussions » Software » comp.soft-sys.matlab

Notice: We are no longer accepting new posts, but the forums will continue to be readable.

Topic: modified unique tolerance
Replies: 1   Last Post: Feb 13, 2013 1:20 PM

Advanced Search

Back to Topic List Back to Topic List Jump to Tree View Jump to Tree View  

Posts: 9,850
Registered: 6/7/07
Re: modified unique tolerance
Posted: Feb 13, 2013 1:20 PM
  Click to see the message monospaced in plain text Plain Text   Click to reply to this topic Reply

On 2/13/2013 9:09 AM, Xha wrote:
> I modified unique to be based on a tolerance,
> d = db ~= 0; -->
> d = db >= [insert tolerance here, e.g. 1e-6]
> this seems to work as intended

I'd _strongly_ suggest making the modifications in a revised function
rather than in the actual distribution.

Also, you may want to make tolerance dependent on whether is
single/double or on magnitude of values, etc., depending on the
application (another reason to not mung on original).


Point your RSS reader here for a feed of the latest messages in this topic.

[Privacy Policy] [Terms of Use]

© The Math Forum at NCTM 1994-2018. All Rights Reserved.