Click here to Skip to main content
11,480,938 members (63,444 online)

Algorithms

 
QuestionWhat kind of checksum can this be? [modified] Pin
GrooverFromHolland9-Sep-12 10:18
memberGrooverFromHolland9-Sep-12 10:18 
AnswerRe: What kind of checksum can this be? Pin
Alan N9-Sep-12 12:55
memberAlan N9-Sep-12 12:55 
GeneralRe: What kind of checksum can this be? Pin
GrooverFromHolland9-Sep-12 23:15
memberGrooverFromHolland9-Sep-12 23:15 
QuestionLinear Regression Most Efficient algorithm calc Line of Best Fit Pin
A*****4-Sep-12 20:24
memberA*****4-Sep-12 20:24 
AnswerRe: Linear Regression Most Efficient algorithm calc Line of Best Fit [modified] Pin
Peter_in_27804-Sep-12 21:17
memberPeter_in_27804-Sep-12 21:17 
QuestionRunning out of Memory - Maths Check Pin
Mike-MadBadger3-Sep-12 8:52
memberMike-MadBadger3-Sep-12 8:52 
AnswerRe: Running out of Memory - Maths Check [modified] Pin
Andrei Straut3-Sep-12 10:03
memberAndrei Straut3-Sep-12 10:03 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger3-Sep-12 11:11
memberMike-MadBadger3-Sep-12 11: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 11:56
memberAndrei Straut3-Sep-12 11:56 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger3-Sep-12 12:18
memberMike-MadBadger3-Sep-12 12:18 
GeneralRe: Running out of Memory - Maths Check Pin
harold aptroot3-Sep-12 22:54
memberharold aptroot3-Sep-12 22:54 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger4-Sep-12 1:26
memberMike-MadBadger4-Sep-12 1:26 
AnswerRe: News Page Pin
Mike-MadBadger3-Sep-12 22:12
memberMike-MadBadger3-Sep-12 22:12 
AnswerRe: Running out of Memory - Maths Check Pin
YvesDaoust4-Sep-12 0:21
memberYvesDaoust4-Sep-12 0:21 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger4-Sep-12 1:29
memberMike-MadBadger4-Sep-12 1:29 
AnswerRe: Running out of Memory - Maths Check Pin
Member 91314964-Sep-12 2:56
memberMember 91314964-Sep-12 2:56 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger4-Sep-12 10:29
memberMike-MadBadger4-Sep-12 10:29 
GeneralRe: Running out of Memory - Maths Check Pin
Member 91314965-Sep-12 3:00
memberMember 91314965-Sep-12 3:00 
SuggestionRe: Running out of Memory - Maths Check Pin
Jeremy David Thomson5-Sep-12 2:36
memberJeremy David Thomson5-Sep-12 2:36 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger5-Sep-12 6:54
memberMike-MadBadger5-Sep-12 6:54 
AnswerRe: Running out of Memory - Maths Check Pin
Member 31409626-Sep-12 21:36
memberMember 31409626-Sep-12 21:36 
GeneralRe: Running out of Memory - Maths Check Pin
Stefan_Lang7-Sep-12 5:29
memberStefan_Lang7-Sep-12 5:29 
AnswerRe: Running out of Memory - Maths Check Pin
Stefan_Lang7-Sep-12 5:49
memberStefan_Lang7-Sep-12 5:49 
GeneralRe: Running out of Memory - Maths Check Pin
Mike-MadBadger7-Sep-12 22:23
memberMike-MadBadger7-Sep-12 22:23 
GeneralRe: Running out of Memory - Maths Check Pin
Stefan_Lang10-Sep-12 1:53
memberStefan_Lang10-Sep-12 1:53 

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

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


Advertise | Privacy | Mobile
Web03 | 2.8.150520.1 | Last Updated 23 May 2015
Copyright © CodeProject, 1999-2015
All Rights Reserved. Terms of Service
Layout: fixed | fluid