Latest Uploads
Extraterre ... .0.1 (zip)

dantheman363

Monty Teas ... Screenie 1

steve_ancell

Santa Clau ... ed his bag

waroffice

manic_platdude.png

spinal

Tetris Clone

steve_ancell

Super blues bros.

spinal

Forum Home

timing problem in java

UserMessage
Posted : Friday, 29 June 2012, 04:46 | Permalink | Mark Here
jedimastersterling


I've been working on a particle filter as a form of AI tracking function.

I want to use a coordinate ascent function to find optimum values for some control parameters but I've hit a snag.

I put the filter into a simple forever while loop to make sure it could work for a large number of iterations. It get's through about 9 iterations and stops. I think it's used too much memory or processor time so some kind of control just shut it down, but i'm not sure.

even to be able to get data for a control ascent function i need to be able to filter a set of particles 20 times and run at least 100 different sets of particles for each ascent step and run 100 steps. each set has 1000 particles and some of the loop functions that control particle behavior run 1000000 times

i know my computer has the power to run this since it's really only one particle set at a time and while writing and testing the code I never had this problem. I think all I need to do is make the program wait between each filter so as not to gum itself up. I could do this with a scanner.nextLine(); but I don't much fancy the idea of pressing the enter key 20000 times.

here's the loop
-->

if you need to see more of the code let me know. I didn't want to insert all 10 pages of it

the resample function calls other functions so i may need to wait on them in turn. I really don't know and I don't know how to do that.
Posted : Friday, 29 June 2012, 22:19 | Permalink | Mark Here
jedimastersterling


I found my problem.

My sensors where not bounded so a value of 0 was throwing off my probability and making a while loop a forever loop

also the increments of ascent where initialized so that they kept setting my gates to 0 and once again making forever loops.

I think I've got it figured out now. Now I just gotta let it run all night and hope it doesn't do some other weirdness.
Latest Posts
Position in Mind
rockford Tue 22:00
Shoutbox Topic - 78
Jayenkai Tue 17:05
Fucking Pound Sign Unicode Bullshit Bollocks
Dabz Tue 13:00
Progress / Location Bars
dna Tue 08:55
Screen Burn of the Mind
rockford Tue 02:13
RoadRash!
Mog Mon 10:56
Noel's Graduation
rockford Mon 07:37
Development via GUI
waroffice Mon 02:48
Audio Rant
steve_ancell Sat 19:16
Wrong Partition!!!!?
spinal Sat 11:24
More

Latest Items
News : Newsletter #176
Jayenkai Sat 04:49
News : Newsletter #175
Dabz Tue 09:38
Blog : Snow: More Material Junk
Cower Sat 23:17
Dev-Diary : Mutant Monty: Amstrad CPC to Windows conversion
rockford Fri 13:14
Techy : AppleTV
Jayenkai Thu 09:40
Blog : Graphviz
steve_ancell Sat 14:17
Pets : Top-Down Shadow Hack
Jayenkai Tue 05:52
Snippet : JNKrunch v1.0
Jayenkai Sat 07:20
News : Newsletter #173
waroffice Fri 04:47
Blog : Material Loading
Cower Fri 02:08
Pets : I Done Won A Thing
shroom_monk Sun 11:31
Pets : Repurposing A Lexer
Cower Mon 22:06
Bah : Feeling a Little Angry
spinal Mon 11:26
News : Newsletter #170
Dabz Sat 00:34
Showcase : sbfgen
Cower Sat 16:57
More

Who's Online
Dabz
Tue, at 22:42
rockford
Tue, at 22:01
shroom_monk
Tue, at 21:38
9572AD
Tue, at 21:32
Evil Roy Ferguson
Tue, at 21:30
therevillsgames
Tue, at 20:43
dna
Tue, at 19:44
CodersRule
Tue, at 18:49
Jayenkai
Tue, at 17:37
Cower
Tue, at 16:17
Link to this page
Site : Jayenkai 2006-Infinity |
MudChat's origins, BBCode's former life, Image Scaler.