Click here to Skip to main content
15,914,016 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: Difficult computer science problem Pin
David Crow3-Oct-06 4:59
David Crow3-Oct-06 4:59 
AnswerRe: Difficult computer science problem Pin
Michael Dunn3-Oct-06 5:04
sitebuilderMichael Dunn3-Oct-06 5:04 
GeneralRe: Difficult computer science problem Pin
Semion_N3-Oct-06 5:06
Semion_N3-Oct-06 5:06 
AnswerRe: Difficult computer science problem Pin
led mike3-Oct-06 5:13
led mike3-Oct-06 5:13 
GeneralRe: Difficult computer science problem Pin
toxcct3-Oct-06 5:27
toxcct3-Oct-06 5:27 
GeneralRe: Difficult computer science problem Pin
led mike3-Oct-06 8:20
led mike3-Oct-06 8:20 
GeneralRe: Difficult computer science problem Pin
David Crow3-Oct-06 5:48
David Crow3-Oct-06 5:48 
AnswerRe: Difficult computer science problem Pin
Maximilien3-Oct-06 5:47
Maximilien3-Oct-06 5:47 
it's not possible; as soon as you receive a new number the average will be modified, and since you cannot keep an history of the values already read, there is no way of determining what numbers that you already read that are above or below the average.

(unproven, and unverified )
The problem with the average is that you can have a new value that will completly "unbalance" the computed average, for example you have a series of values in the [1, 10] range, the average will be between those 2 values, but if at some point you have a very large value, it will mess the result, and statistically the result will not be valid, unless you can filter out those bad values.


( but I expect someone to come with a brilliant mathematical answer that will awe us )



Maximilien Lincourt
Your Head A Splode - Strong Bad

AnswerRe: Difficult computer science problem Pin
benjymous3-Oct-06 5:54
benjymous3-Oct-06 5:54 
GeneralRe: Difficult computer science problem Pin
David Crow3-Oct-06 6:00
David Crow3-Oct-06 6:00 
GeneralRe: Difficult computer science problem Pin
Chris Losinger3-Oct-06 7:52
professionalChris Losinger3-Oct-06 7:52 
QuestionClient Server Application Pin
Pardi Banjarnahor3-Oct-06 4:06
Pardi Banjarnahor3-Oct-06 4:06 
AnswerRe: Client Server Application Pin
_AnsHUMAN_ 3-Oct-06 4:12
_AnsHUMAN_ 3-Oct-06 4:12 
AnswerRe: Client Server Application Pin
Rajesh R Subramanian3-Oct-06 4:16
professionalRajesh R Subramanian3-Oct-06 4:16 
AnswerRe: Client Server Application Pin
Hamid_RT3-Oct-06 9:18
Hamid_RT3-Oct-06 9:18 
QuestionHow do I pack to integer values in a double ? Pin
Astricks3-Oct-06 3:45
Astricks3-Oct-06 3:45 
AnswerRe: How do I pack to integer values in a double ? Pin
toxcct3-Oct-06 3:49
toxcct3-Oct-06 3:49 
GeneralRe: How do I pack to integer values in a double ? Pin
Astricks3-Oct-06 3:59
Astricks3-Oct-06 3:59 
GeneralRe: How do I pack to integer values in a double ? Pin
toxcct3-Oct-06 4:03
toxcct3-Oct-06 4:03 
GeneralRe: How do I pack to integer values in a double ? Pin
Astricks3-Oct-06 4:19
Astricks3-Oct-06 4:19 
GeneralRe: How do I pack to integer values in a double ? Pin
Chris Losinger3-Oct-06 4:21
professionalChris Losinger3-Oct-06 4:21 
GeneralRe: How do I pack to integer values in a double ? Pin
Astricks3-Oct-06 4:45
Astricks3-Oct-06 4:45 
GeneralRe: How do I pack to integer values in a double ? Pin
Astricks3-Oct-06 4:53
Astricks3-Oct-06 4:53 
QuestionRe: How do I pack to integer values in a double ? Pin
David Crow3-Oct-06 4:40
David Crow3-Oct-06 4:40 
JokeRe: How do I pack to integer values in a double ? Pin
toxcct3-Oct-06 4:45
toxcct3-Oct-06 4:45 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.