Re: SameValue function -- how to speed up?
From: John Herbster (herb-sci1_AT_sbcglobal.net)
Date: 09/10/04
- Next message: Dag Fjeld Edvardsen: "Re: SameValue function -- how to speed up?"
- Previous message: John Herbster: "Re: SameValue function -- how to speed up?"
- In reply to: Dag Fjeld Edvardsen: "Re: SameValue function -- how to speed up?"
- Next in thread: Dag Fjeld Edvardsen: "Re: SameValue function -- how to speed up?"
- Reply: Dag Fjeld Edvardsen: "Re: SameValue function -- how to speed up?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Thu, 9 Sep 2004 17:30:07 -0500
> To check if the efficiency score is equal
> to one, I use SameValue(const E-score,1,epsilon),
> where epsilon is a very small number, maybe
> 0.000000001. The reason is to be sure that the
> floating point (double) comparisons do not miss
> if I use the simpler if E-score = 1.
Dag, Then for this special case I suggest that you code
your own comparison instead of using SameValue.
Maybe like
If abs(E_Score - 1) < 1E-9 then ...
Regards, JohnH
- Next message: Dag Fjeld Edvardsen: "Re: SameValue function -- how to speed up?"
- Previous message: John Herbster: "Re: SameValue function -- how to speed up?"
- In reply to: Dag Fjeld Edvardsen: "Re: SameValue function -- how to speed up?"
- Next in thread: Dag Fjeld Edvardsen: "Re: SameValue function -- how to speed up?"
- Reply: Dag Fjeld Edvardsen: "Re: SameValue function -- how to speed up?"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|