Click here to Skip to main content
15,889,808 members
Home / Discussions / Algorithms
   

Algorithms

 
QuestionWhat kind of checksum can this be? Pin
GrooverFromHolland9-Sep-12 9:18
GrooverFromHolland9-Sep-12 9:18 
AnswerRe: What kind of checksum can this be? PinPopular
Alan N9-Sep-12 11:55
Alan N9-Sep-12 11:55 
GeneralRe: What kind of checksum can this be? Pin
GrooverFromHolland9-Sep-12 22:15
GrooverFromHolland9-Sep-12 22:15 
QuestionLinear Regression Most Efficient algorithm calc Line of Best Fit Pin
A*****4-Sep-12 19:24
A*****4-Sep-12 19:24 
AnswerRe: Linear Regression Most Efficient algorithm calc Line of Best Fit PinPopular
Peter_in_27804-Sep-12 20:17
professionalPeter_in_27804-Sep-12 20:17 
QuestionRunning out of Memory - Maths Check Pin
M-Badger3-Sep-12 7:52
M-Badger3-Sep-12 7:52 
AnswerRe: Running out of Memory - Maths Check Pin
Andrei Straut3-Sep-12 9:03
Andrei Straut3-Sep-12 9:03 
GeneralRe: Running out of Memory - Maths Check Pin
M-Badger3-Sep-12 10:11
M-Badger3-Sep-12 10:11 
Pixel position, it's converted to a complex number which is then stuffed into the iterative equation and that results in a long (or short) list of complex numbers, Z0 to Zn, n could be anywhere from 0 to the limiting number - 10k in the example I gave, but could be much much lower (50) or much much higher.

The problem arises since the way I'm going through this 'rite of passage' (doing Mandelbrot images) is to try and create a pluggable set of classes that could be used to implement any fractal set (mandelbrot, julia, newton etc.) and use any of the many colourising methods (escape time, distance estimators etc.). Adding a new set (e.g. Burning Ship, Phoenix) or a new colourising method (e.g. escape angle) therefore simply entails creating a new class that does that specific job and implements the relevant interface.

The consequence of this is that the key class which manages and calls the FractalSet iterators and then calls the colouriser to get a colour for the complex number (pixel) under investigation has no way of knowing what data that colouriser needs, the classic escape time needs only the actual number of iterations, the distance estimators need things like the last 2 (or more) results of the iteration.

So the above question came from my first idea which was to store them all whilst the entire image was iterated pixel by pixel - bad idea!

I think my way of doing this will be to change the colouriser interface and have a method that takes the complete result set of results for a single iteration, processes it as appropriate (turning potentially thousands of complex numbers into something much smaller) and builds the data set it needs, plus a method to to manipulate them once all iterations have been completed and finally a method that spits out the image.

Thanks for the confirmation.

Mike
GeneralRe: Running out of Memory - Maths Check Pin
Andrei Straut3-Sep-12 10:56
Andrei Straut3-Sep-12 10:56 
GeneralRe: Running out of Memory - Maths Check Pin
M-Badger3-Sep-12 11:18
M-Badger3-Sep-12 11:18 
GeneralRe: Running out of Memory - Maths Check Pin
harold aptroot3-Sep-12 21:54
harold aptroot3-Sep-12 21:54 
GeneralRe: Running out of Memory - Maths Check Pin
M-Badger4-Sep-12 0:26
M-Badger4-Sep-12 0:26 
AnswerRe: News Page Pin
M-Badger3-Sep-12 21:12
M-Badger3-Sep-12 21:12 
AnswerRe: Running out of Memory - Maths Check Pin
YvesDaoust3-Sep-12 23:21
YvesDaoust3-Sep-12 23:21 
GeneralRe: Running out of Memory - Maths Check Pin
M-Badger4-Sep-12 0:29
M-Badger4-Sep-12 0:29 
AnswerRe: Running out of Memory - Maths Check Pin
Member 91314964-Sep-12 1:56
Member 91314964-Sep-12 1:56 
GeneralRe: Running out of Memory - Maths Check Pin
M-Badger4-Sep-12 9:29
M-Badger4-Sep-12 9:29 
GeneralRe: Running out of Memory - Maths Check Pin
Member 91314965-Sep-12 2:00
Member 91314965-Sep-12 2:00 
SuggestionRe: Running out of Memory - Maths Check Pin
Jeremy David Thomson5-Sep-12 1:36
Jeremy David Thomson5-Sep-12 1:36 
GeneralRe: Running out of Memory - Maths Check Pin
M-Badger5-Sep-12 5:54
M-Badger5-Sep-12 5:54 
AnswerRe: Running out of Memory - Maths Check Pin
Member 31409626-Sep-12 20:36
Member 31409626-Sep-12 20:36 
GeneralRe: Running out of Memory - Maths Check Pin
Stefan_Lang7-Sep-12 4:29
Stefan_Lang7-Sep-12 4:29 
AnswerRe: Running out of Memory - Maths Check Pin
Stefan_Lang7-Sep-12 4:49
Stefan_Lang7-Sep-12 4:49 
GeneralRe: Running out of Memory - Maths Check Pin
M-Badger7-Sep-12 21:23
M-Badger7-Sep-12 21:23 
GeneralRe: Running out of Memory - Maths Check Pin
Stefan_Lang10-Sep-12 0:53
Stefan_Lang10-Sep-12 0:53 

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.