"be consistent" PerlMonks

### Re^2: computational efficiency

by thelycaeum (Initiate)
 on Oct 10, 2011 at 17:42 UTC ( #930685=note: print w/replies, xml ) Need Help??

in reply to Re: computational efficiency

First of all, thanks for all of your replies.

BrowserUK: I'll try that one, I think it's exactly the benchmark code I was looking for.

Perlbotics: Quantizing the angles seems to be a good idea. At first glance, the following problem arises in my mind: To achieve random 3D rotation, I have to apply rotations around the x,y and z axis. Do you think I could achieve a random probability distribution by simply randomizing the rotation axis and walking through the quantized angles with a foreach loop?

Lotus1 & moritz: Thanks moritz, I thought about that shortly after the post. I could get rid of that problem by randomizing the sign of the cosine... shouldn't I? I'll think about that and read the article lotus posted, I don't understand it yet.

zentara: Actually, I intend to learn how to use PDL by writing that program. However, I wanted to get started by writing a backbone in Perl and only solve the more sophisticated problems with PDL. I was having some problems with the notation of complex values in the PDL:FFTW package before, therefore I was wondering what I could program in Perl efficiently and what not.

roboticus: Very good point, I'll do some analysis on the probability distribution for both methods using BrowserUK's code and I'll work on the point moritz made about the two vs. four quadrants.

hardburn: I've messing around with POGL a bit, but I think it's too much for me... yet ;)

Old_Gray_Bear: Thanks, I don't have much programming experience and so I was looking for some hints on how to plan this project.

Thanks again for all of these great comments :)

Create A New User
Node Status?
node history
Node Type: note [id://930685]
help
Chatterbox?
 [Discipulus]: ah marto are thou escaping Corion's visit? ;=)

How do I use this? | Other CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (7)
As of 2017-11-24 08:26 GMT
Sections?
Information?
Find Nodes?
Leftovers?
Voting Booth?
In order to be able to say "I know Perl", you must have:

Results (346 votes). Check out past polls.

Notices?