Click here to Skip to main content
15,920,217 members
Home / Discussions / Algorithms
   

Algorithms

 
GeneralRe: Logic for Billing Pin
briogene26-Oct-07 22:08
briogene26-Oct-07 22:08 
GeneralRe: Thanks Pin
DQNOK29-Oct-07 10:25
professionalDQNOK29-Oct-07 10:25 
AnswerRe: Logic for Billing Pin
Duane in Japan23-Oct-07 6:08
Duane in Japan23-Oct-07 6:08 
QuestionPlease HELP! Carl Gauss Algorithm for getting Easter on specified year JAVA Pin
Mr. Deja Vu16-Oct-07 15:01
Mr. Deja Vu16-Oct-07 15:01 
AnswerRe: Please HELP! Carl Gauss Algorithm for getting Easter on specified year JAVA Pin
cp987616-Oct-07 15:55
cp987616-Oct-07 15:55 
GeneralRe: Please HELP! Carl Gauss Algorithm for getting Easter on specified year JAVA Pin
Mr. Deja Vu16-Oct-07 18:15
Mr. Deja Vu16-Oct-07 18:15 
QuestionPlotting large amount of data points Pin
nico8015-Oct-07 11:26
nico8015-Oct-07 11:26 
AnswerRe: Plotting large amount of data points Pin
cp987615-Oct-07 12:38
cp987615-Oct-07 12:38 
You could try an algorithm that HP used to use in their Spectrum Analyzers. Take whatever range of data you want to plot, say 1 million points, and map this to say 1000 plot points. They would divide the x-axis up into 500 bins of 2000 points each, and in each bin they would determine the max and min value of the 2000 samples. They would then plot the 1000 points min1, max1, min2, max2, min3, max3, ... where {min1, max1} are the min and max values in the first bin etc. If the number of bins you use is greater than the number of pixels across your display then you won't be able to see any difference between the sampled graph and the original one. So visually this looks identical to plotting all the data, but it will plot / update much much faster. Of course if you zoom in significantly you have to recalculate the bins and the max/mins otherwise you will see the sampling artifacts.




Peter
"Until the invention of the computer, the machine gun was the device that enabled humans to make the most mistakes in the smallest amount of time."

GeneralRe: Plotting large amount of data points Pin
nico8015-Oct-07 14:32
nico8015-Oct-07 14:32 
GeneralRe: Plotting large amount of data points Pin
nico8016-Oct-07 11:25
nico8016-Oct-07 11:25 
GeneralRe: Plotting large amount of data points Pin
cp987616-Oct-07 14:52
cp987616-Oct-07 14:52 
GeneralRe: Plotting large amount of data points Pin
Ri Qen-Sin23-Oct-07 14:59
Ri Qen-Sin23-Oct-07 14:59 
GeneralA Prayer for Archimedes Pin
Bassam Abdul-Baki10-Oct-07 6:44
professionalBassam Abdul-Baki10-Oct-07 6:44 
GeneralRe: A Prayer for Archimedes Pin
IdUnknown10-Oct-07 7:16
IdUnknown10-Oct-07 7:16 
GeneralRe: A Prayer for Archimedes Pin
Bassam Abdul-Baki10-Oct-07 7:26
professionalBassam Abdul-Baki10-Oct-07 7:26 
Questionfill memory with a pattern Pin
DQNOK10-Oct-07 5:21
professionalDQNOK10-Oct-07 5:21 
AnswerRe: fill memory with a pattern Pin
DQNOK11-Oct-07 7:35
professionalDQNOK11-Oct-07 7:35 
AnswerRe: fill memory with a pattern Pin
Alan Balkany24-Oct-07 4:13
Alan Balkany24-Oct-07 4:13 
GeneralRe: fill memory with a pattern Pin
DQNOK24-Oct-07 10:33
professionalDQNOK24-Oct-07 10:33 
GeneralRe: fill memory with a pattern Pin
DQNOK25-Oct-07 3:41
professionalDQNOK25-Oct-07 3:41 
QuestionAlgorithm to check how different are two files? Pin
bosfan9-Oct-07 22:01
bosfan9-Oct-07 22:01 
AnswerRe: Algorithm to check how different are two files? Pin
cp98769-Oct-07 22:56
cp98769-Oct-07 22:56 
GeneralRe: Algorithm to check how different are two files? Pin
bosfan9-Oct-07 23:18
bosfan9-Oct-07 23:18 
AnswerRe: Algorithm to check how different are two files? Pin
ScottM111-Oct-07 2:07
ScottM111-Oct-07 2:07 
GeneralRe: Algorithm to check how different are two files? Pin
ChandraRam11-Oct-07 2:25
ChandraRam11-Oct-07 2:25 

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.