https://drive.google.com/open?id=0BwsgM ... Ug4X05sVzg
If you increase the precision to 1000 or so it works a lot faster. I've just started experimenting with it.
Search found 199 matches
- Oct 24, 2016 5:55
- Forum: Linux
- Topic: Optimization algorithm again
- Replies: 12
- Views: 3608
Re: Squares
Thanks for the info. I will keep clear of windows 10.
- Oct 22, 2016 13:43
- Forum: Linux
- Topic: Optimization algorithm again
- Replies: 12
- Views: 3608
Re: Optimization algorithm again
I need to find some interesting visual problems to test this code. I also have to check some things like load/save. ' http://xoroshiro.di.unimi.it/ namespace Xor128 const as ulongint PHI= &h9E3779B97F4A7C15 dim as ulongint a,b function rand() as ulongint var result=a+b b xor=a a=((a shl 55) or (...
- Oct 21, 2016 12:48
- Forum: Game Dev
- Topic: pseudo 3d road
- Replies: 2
- Views: 1912
Re: pseudo 3d road
Neat. I'll look up the links you gave too.
- Oct 21, 2016 5:01
- Forum: Linux
- Topic: Optimization algorithm again
- Replies: 12
- Views: 3608
Re: Optimization algorithm again
Levi function over the -10 to 10 domain. getkey cls dim as single x,y,cost=levi(10*x,10*y) 'cost at (0,0) for i as ulong=0 to 10000 var cx=x+mutateSymP127() var cy=y+mutateSymP127() if cx>1! or cx<-1! then cx=x if cy>1! or cy<-1! then cy=y var mcost=levi(10*cx,10*cy) if mcost<cost then x=cx y=cy cos...
- Oct 21, 2016 4:37
- Forum: Linux
- Topic: Optimization algorithm again
- Replies: 12
- Views: 3608
Re: Optimization algorithm again
' http://xoroshiro.di.unimi.it/ namespace xor128 const as ulongint PHI= &h9E3779B97F4A7C15 dim as ulongint a,b function rand() as ulongint var result=a+b b xor=a a=((a shl 55) or (a shr (64-55))) xor b xor (b shl 14) b=(b shl 36) or (b shr (64-36)) return result end function sub init() construc...
- Oct 21, 2016 1:31
- Forum: Linux
- Topic: Optimization algorithm again
- Replies: 12
- Views: 3608
Re: Optimization algorithm again
mov eax,edi -move the lower 32 bits of parameter k into eax, upper 32 bits of rax get zeroed by this move bswapq rdi - move the highest 32 bits of rdi (parameter k) to the lower 32 bits of rdi, it doesn't matter that they get permuted because k is supposed to be random imul rax,rsi - the lower 32 bi...
- Oct 20, 2016 15:10
- Forum: Linux
- Topic: Optimization algorithm again
- Replies: 12
- Views: 3608
Optimization algorithm again
More scale free numeric optimization for Linux AMD64 namespace EvoRnd dim as long ffile sub init() if ffile<>0 then return ffile=freefile() Open "/dev/urandom" For Input As #ffile end sub sub finish() close #ffile ffile=0 end sub function rand() as ulongint dim as ulongint k get #ffile,,k ...
- Oct 20, 2016 14:54
- Forum: Community Discussion
- Topic: Artificial muscle
- Replies: 7
- Views: 1905
Re: Artificial muscle
The other idea for heating the threads was to embed platinum particles into them and then allow methanol vapor to flow over the threads when heating was required. Surely some of the vapor is going to be wasted if you do that. However the energy density would be far in excess of what a rechargeable l...
- Oct 12, 2016 12:59
- Forum: Linux
- Topic: Streaming audio
- Replies: 14
- Views: 6892
Re: Streaming audio
Thanks. I'll do the code in FB then.
- Oct 12, 2016 5:56
- Forum: Linux
- Topic: Streaming audio
- Replies: 14
- Views: 6892
Re: Streaming audio
It seems my cheap laptop only allows 8 bit audio through arecord. That is probably a hardware limitation. screenres 512,256,32 dim as ubyte s,v(511) dim as ulong i var ff=freefile() Open Pipe "arecord -q -f U8" For Input As #ff Do While Not EOF(ff) and inkey()<>chr(27) get #ff,, s pset (i,...
- Oct 12, 2016 4:05
- Forum: Linux
- Topic: Streaming audio
- Replies: 14
- Views: 6892
Re: Streaming audio
I want to write some ham radio software to decode PSK31. I kinda want to write it in Java for portability. However that would mean spending a considerable amount of time doing a JavaFX GUI. The other option is a quick piece of code using FB. Unfortunately /dev/dsp is being removed from the Linux ker...
- Sep 28, 2016 0:15
- Forum: Community Discussion
- Topic: Artificial muscle
- Replies: 7
- Views: 1905
Re: Artificial muscle
It could reduce the cost of mechatronics down to a very low level. A few cent per actuator. I'll definitely give it a try at some stage. There are a number of options for heating the twisted thread besides electrical resistance heating. I guess you could incorporate ferromagnetic particles in the th...
- Sep 26, 2016 23:53
- Forum: Community Discussion
- Topic: Artificial muscle
- Replies: 7
- Views: 1905
Artificial muscle
I guess a few people use FB for robotics and would be interested in the latest work on artificial muscles:
http://movie-usa.glencoesoftware.com/vi ... 13/video-1
http://www.pnas.org/content/early/2016/ ... 3.abstract
http://movie-usa.glencoesoftware.com/vi ... 13/video-1
http://www.pnas.org/content/early/2016/ ... 3.abstract
- Sep 23, 2016 13:40
- Forum: Sources, Examples, Tips and Tricks
- Topic: denoising AutoEncoder (dAE)
- Replies: 9
- Views: 2512
Re: denoising AutoEncoder (dAE)
Same algorithm but hopefully you can run it on windows etc as well. ' Autoencoder 90 namespace xor128 'http://xoroshiro.di.unimi.it/ const as ulongint PHI= &h9E3779B97F4A7C15 dim as ulongint a,b function rand() as ulongint var result=a+b b xor=a a=((a shl 55) or (a shr (64-55))) xor b xor (b shl...