Menu
Menu
DaniWeb
Log In
Sign Up
Read
Contribute
Meet
Search
Search
About 782 results for
tolerance
- Page 1
Tolerance
Programming
Software Development
16 Years Ago
by shmay
… below the average, with "equal" being within a
tolerance
.01. [code=c] void RelToAve (double ave, int numRead, double…
Re: Tolerance
Programming
Software Development
16 Years Ago
by thekashyap
You could post the "idea" as well.. Ppl will tell you if something is wrong. One I can tell you is: [code=c]if (*array > ave) else if (*array < ave)[/code] Although this is inside the loop it'll always test only the first element of the array. To access other elements in the array you should use the subscript operator (operator []).
Re: Tolerance
Programming
Software Development
16 Years Ago
by ithelp
rather use C++ overload > < and == functions.
Re: Tolerance
Programming
Software Development
16 Years Ago
by shmay
[QUOTE=thekashyap;362035]You could post the "idea" as well.. Ppl will tell you if something is wrong. One I can tell you is: [code=c]if (*array > ave) else if (*array < ave)[/code] Although this is inside the loop it'll always test only the first element of the array. To access other elements in the array you should use the …
Re: Tolerance
Programming
Software Development
16 Years Ago
by thekashyap
[quote=shmay;362043]that's why I have this sucker at the end: array++;[/quote] Sorry.. didn't see that one.. :) Well, if this is an assignment I think the prof's idea is to teach floating point number comparison. See [URL="http://www.daniweb.com/techtalkforums/thread73810.html"]this thread [/URL]I had posted. It has some description of …
Re: Tolerance
Programming
Software Development
16 Years Ago
by shmay
Thank you. I've been toying around with fabs for a little bit, and cannot figure it out. It is late, and the assignment is due early. Can you just tell me what I should put? I would probably learn it quicker that way anyhow.
Re: Tolerance
Programming
Software Development
16 Years Ago
by thekashyap
[quote=shmay;362062] Can you just tell me what I should put? I would probably learn it quicker that way anyhow.[/quote] If you had a look at the link this is what you would've seen: ------------------------------------- [B]Comparing with epsilon – absolute error[/B] Since floating point calculations involve a bit of uncertainty we can try to …
Re: Tolerance
Programming
Software Development
16 Years Ago
by shmay
Thank you.
group tuple values with tolerance and average
Programming
Software Development
7 Years Ago
by giancan
…) I would like to group values within a certain
tolerance
. Say I set
tolerance
to 3, my 1st and 6th results ((43… list and add/subtract values from 1 to 3 (my
tolerance
), so the entry (43,560) will result in: (43,560…
Re: group tuple values with tolerance and average
Programming
Software Development
7 Years Ago
by JamesCherrill
… it's trivial to find consecutive entries that are within
tolerance
for the first value. For each set of such entries… the second value and find the subsets that are within
tolerance
for the second value. Replace those subsets by their averages…
Re: group tuple values with tolerance and average
Programming
Software Development
7 Years Ago
by Gribouillis
You could try to compute a key for each pair `(x, y)`, the key could be `(x//3, y//3)` for a
tolerance
of 3. Then you sort the data by the key and you group together the points having the same key, using `itertools.groupby()`. You can then average the values in each group.
Re: group tuple values with tolerance and average
Programming
Software Development
7 Years Ago
by Gribouillis
… probably be determined by * The shape of the clusters * Your
tolerance
* The minimum and maximum values of the coordinates As I…
Low tolerance here.
Community Center
Meta DaniWeb
14 Years Ago
by daveyb91
… the other one. So I want to complain on your
tolerance
here, its way way way to low. Davey
Re: Low tolerance here.
Community Center
Meta DaniWeb
14 Years Ago
by ~s.o.s~
> So I want to complain on your
tolerance
here, its way way way to > low. This isn'…
Fault tolerance in JAVA
Programming
Software Development
8 Years Ago
by london-G
… a project I have been asked to look into fault
tolerance
. From what I understand a fault tolerant program is a…
Re: Fault tolerance in JAVA
Programming
Software Development
8 Years Ago
by Schol-R-LEA
Actually, 'fault
tolerance
' has more to do with gracefully recovering from exceptional situations than with avoiding them entirely. Setting up exception blocks around fault-sensitive code (e.g., pretty much all I/O) is a good starting point, but not sufficient in and of itself; you have to know how to handle the exceptions, not just trap them.
Re: Not meeting tolerance
Programming
Software Development
14 Years Ago
by riotburn
No its not a matter of the precision of the variable as i have few other newtons method programs. I added another statement to the loop and get the answer i needed, though it seems like it should've met the
tolerance
without the extra statement. [CODE]while(abs(xnew - xold) > tol || abs(best-B) > tol)[/CODE]
Re: group tuple values with tolerance and average
Programming
Software Development
7 Years Ago
by giancan
Thanks Gribouillis, while waiting for some help I found another possible solution. from cluster import KMeansClustering cl = KMeansClustering(unique_ptlist) #unique_ptlist is my starting point's list clusters = cl.getclusters(8) filtered_list=[] for subcluster in clusters: filtered_list.append(((sum(x[0] …
Re: group tuple values with tolerance and average
Programming
Software Development
7 Years Ago
by Gribouillis
Or perhaps you could try n = len(set((x//tol, y//tol) for (x, y) in data)) as a rough estimate of the number of clusters.
Re: group tuple values with tolerance and average
Programming
Software Development
7 Years Ago
by Gribouillis
@JamesCherrill In your example my 'key' algorithm groups the 3s and the 5s in a one-liner because the keys x//3 for the values (1, 3, 3, 5 ,5, 5, 5) are (0, 1, 1, 1, 1, 1, 1). In python it gives >>> import itertools as itt >>> from functools import partial >>> data = [1, 3, 3, 5, 5, 5, 5] >>>…
Re: group tuple values with tolerance and average
Programming
Software Development
7 Years Ago
by JamesCherrill
Yes. My algorithm was 2d, just the illustration was 1d, and it extends to nD. But yours still looks a lot better :) JC ps what about 2,4,4,6,6,6,6 -> 1,1,1,2,2,2,2
Re: Low tolerance here.
Community Center
Meta DaniWeb
14 Years Ago
by crunchie
It's in the rules that you agreed to when you signed up. No good complaining about it. First offense is a warning. Second is an infraction. What would [i]you[/i] suggest? Ignore the first offense?
Re: Low tolerance here.
Community Center
Meta DaniWeb
14 Years Ago
by Tom Gunn
[QUOTE]I get a warning just because I made a double topic, and had no idea about how to move the other one.[/QUOTE] You can probably go to the post you want to move and click the Flag Bad Post link to report it. That will get the moderators' attention, and because it was an accident and you reported it yourself, they should not give you a warning.
Re: Low tolerance here.
Community Center
Meta DaniWeb
14 Years Ago
by happygeek
The warning system provides a way of letting members know they have broken the rules without it actually giving them infraction points or being too formal - as it says, it simply serves as a reminder of the rules. It also says "We understand that you probably didn't intend to do something wrong" so don't take it as an intolerant slap but …
Re: Low tolerance here.
Community Center
Meta DaniWeb
14 Years Ago
by MosaicFuneral
[QUOTE=Tom Gunn;958827]You can probably go to the post you want to move and click the Flag Bad Post link to report it. That will get the moderators' attention, and because it was an accident and you reported it yourself, they should not give you a warning.[/QUOTE] You still get the auto-send message, even if you report your own self. Hitting…
Re: Low tolerance here.
Community Center
Meta DaniWeb
14 Years Ago
by Ancient Dragon
[QUOTE=MosaicFuneral;959097]You still get the auto-send message, even if you report your own self. Hitting the submit button a couple times, in the lag, isn't something to cry over.[/QUOTE] Yes you will get an auto-send message about the mod deleting the thread, but you probably won't get the warning, unless the mod specifically issues one.
Re: Low tolerance here.
Community Center
Meta DaniWeb
14 Years Ago
by ithelp
Relax . Many of us got banned in past for our mistakes , at least this forum allows people to come back from a ban , there are many forums which bans people for ever for silly mistakes.
Re: Low tolerance here.
Community Center
Meta DaniWeb
14 Years Ago
by The Dude
[QUOTE=crunchie]It's in the rules that you agreed to when you signed up. [/QUOTE]Yes well NO ONE READS THEM WHICH IS SAD :icon_sad:
Re: Fault tolerance in JAVA
Programming
Software Development
8 Years Ago
by stultuske
> a fault tolerant program is a program that is not vulnerable to errors. if this is so, there isn't a single fault tolerant program in existence. every program is vulnerable to errors. What you can do, however, is anticipate them. Anticipate every single error that might occur, and implement decent error and Exception handling for them. This…
Overloading operators
Programming
Software Development
14 Years Ago
by zango
…[NOMINAL] + m_dptrRes[NOMINAL]); //Calculate
tolerance
double
Tolerance
= 0; if (resistorObj.m_dptrRes[
TOLERANCE
] > m_dptrRes[
TOLERANCE
]){
Tolerance
= resistorObj.m_dptrRes[
TOLERANCE
]; } else {
Tolerance
= m_dptrRes[
TOLERANCE
]; }; //display a message letting us…
1
2
3
14
Next
Last
Search
Search
Forum Categories
Hardware/Software
Programming
Digital Media
Community Center
Latest Content
Newest Topics
Latest Topics
Latest Posts
Latest Comments
Top Tags
Topics Feed
Social
Meet People
Forums
Top Members
Community Functions
DaniWeb Premium
Newsletter Archive
Markdown Syntax
Community Rules
Developer APIs
Connect API
Forum API Docs
Tools
SEO Backlink Checker
Legal
Terms of Service
Privacy Policy
FAQ
About Us
Advertise
Contact Us
© 2024 DaniWeb® LLC