Click here to Skip to main content
15,918,275 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: autoplay droptarget Pin
bryce2-Jun-04 19:02
bryce2-Jun-04 19:02 
GeneralRe: autoplay droptarget Pin
John R. Shaw2-Jun-04 21:45
John R. Shaw2-Jun-04 21:45 
QuestionHow to launch the .job file in VC++ Pin
ErisonWu2-Jun-04 15:27
ErisonWu2-Jun-04 15:27 
AnswerRe: How to launch the .job file in VC++ Pin
jmkhael2-Jun-04 23:05
jmkhael2-Jun-04 23:05 
GeneralRe: How to launch the .job file in VC++ Pin
ErisonWu3-Jun-04 15:29
ErisonWu3-Jun-04 15:29 
AnswerRe: How to launch the .job file in VC++ Pin
David Crow3-Jun-04 4:31
David Crow3-Jun-04 4:31 
Generaldx9err.cpp missing Pin
student66692-Jun-04 14:27
student66692-Jun-04 14:27 
GeneralLine graph algorithm Pin
Miszou2-Jun-04 13:12
Miszou2-Jun-04 13:12 
More of an algorithm question than a C++ question, but here goes anyway:

A sequence of numbers needs to be plotted as a graph on the screen. There are many more numbers than pixels available, therefore the current implementation "compresses" groups of numbers so that it can represent each group as a single pixel.

eg:
Assume the following trivial sequence of numbers:

{ 1, 2, 3, 3, 2, 1, 1, 2, 3 }

Also assume that I only have 3 available pixels in which to display these values, such that:

pixel 0 = { 1, 2, 3 }
pixel 1 = { 3, 2, 1 }
pixel 2 = { 1, 2, 3 }

What is the best way to get a "best fit" of the numbers, so that the graph retains as much of its meaning as possible?

As far as I see it, I can take the minimum, maximum or average values of each group, but this is not always useful. For example, given the above groupings, I will end up with a flat line graph, which is obviously not representative of the data!

As I mentioned above, the software already exists to do this, but the results are not always satisfactory and are occasionally outright misleading. I really need a good algorithm that will retain as much of the "shape" of the graph as possible.

Thanks for any help! Smile | :)
GeneralRe: Line graph algorithm Pin
Nitzan Shaked2-Jun-04 19:53
Nitzan Shaked2-Jun-04 19:53 
GeneralRe: Line graph algorithm Pin
Member 8348123-Jun-04 4:00
Member 8348123-Jun-04 4:00 
GeneralCStatic window text Pin
dart132-Jun-04 12:34
dart132-Jun-04 12:34 
GeneralRe: CStatic window text Pin
valikac2-Jun-04 18:58
valikac2-Jun-04 18:58 
Questionsyncrhonised contact outlook with externe .MDB ACCESS? Pin
jerome_data2-Jun-04 11:10
jerome_data2-Jun-04 11:10 
GeneralAutomated Program Serial Numbers Pin
Will C.2-Jun-04 10:52
sussWill C.2-Jun-04 10:52 
GeneralRe: Automated Program Serial Numbers Pin
Paul Ranson2-Jun-04 12:02
Paul Ranson2-Jun-04 12:02 
GeneralRe: Automated Program Serial Numbers Pin
Will C.2-Jun-04 13:55
sussWill C.2-Jun-04 13:55 
GeneralMAC Address Pin
cobyjone2-Jun-04 10:09
cobyjone2-Jun-04 10:09 
GeneralRe: MAC Address Pin
David Crow2-Jun-04 10:27
David Crow2-Jun-04 10:27 
GeneralGetting lid closed event Pin
Alex Korchemniy2-Jun-04 9:55
Alex Korchemniy2-Jun-04 9:55 
GeneralRe: Getting lid closed event Pin
David Crow2-Jun-04 10:33
David Crow2-Jun-04 10:33 
Questionmany CMutex objects: good idea? Pin
berndg2-Jun-04 8:52
berndg2-Jun-04 8:52 
AnswerRe: many CMutex objects: good idea? Pin
peterchen2-Jun-04 9:03
peterchen2-Jun-04 9:03 
GeneralRe: many CMutex objects: good idea? Pin
berndg2-Jun-04 9:12
berndg2-Jun-04 9:12 
GeneralRe: many CMutex objects: good idea? Pin
Daniel Turini2-Jun-04 10:17
Daniel Turini2-Jun-04 10:17 
GeneralRe: many CMutex objects: good idea? Pin
Alexander M.,2-Jun-04 12:54
Alexander M.,2-Jun-04 12:54 

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.