Simulation is the imitation of some real thing, state of affairs, or process. The act of simulating something generally entails representing certain key characteristics or behaviours of a selected physical or abstract system.
Questions tagged [simulation]
5194 questions
6
votes
4 answers
What's the best way to implement one-dimensional collision detection?
I'm writing a piece of simulation software, and need an efficient way to test for collisions along a line.
The simulation is of a train crossing several switches on a track. When a wheel comes within N inches of the switch, the switch turns on, then…

dlras2
- 8,416
- 7
- 51
- 90
6
votes
1 answer
Kolmogorov-Smirnov test
I'm using the R function ks.test() to test the Uniform distribution of the R random number generator. I'm using the following code:
replicate(100000, ks.test(runif(n),y="punif").
When n is less than or equal to 100 it works, but when n is greater…

Egodym
- 453
- 1
- 8
- 23
6
votes
3 answers
Easiest way to simulate the maximum CPU load?
I have to test an embedded computer for the most extreme conditions of generated heat and current draw, and to do so I want to write a program that employs the CPU resource as much as possible of a quad core CPU (one thread per core). Can you…

Mark Miles
- 706
- 8
- 20
6
votes
1 answer
How to install IMUsim
This a guide rather than a question, because I spent a LOT of time fighting with compilation errors when installing IMUsim, and I know that many other researchers have struggled. The IMUsim code is currently unmaintained and the installation…

rleelr
- 1,854
- 17
- 26
6
votes
3 answers
Robot Simulation in Java
I am doing a project concerning robot simulation and i need help. I have to simulate the activities of a robot in a warehouse. I am using mindstorm robots and lego's for the warehouse. The point here is i have to simulate all the activities of the…
Kap
6
votes
1 answer
Alternative of openintents for simulating sensors for Android
I am working on an extensible sensing and data processing framework for Android mobile devices. It will enable a wide range of data signals (e.g., Temperature, Battery,pressure, wifi signal strength, etc.) accessible via Android mobile devices.
To…

user-517752
- 1,188
- 5
- 21
- 54
6
votes
5 answers
How do you simulate a serial device?
I am working on driver that talks to a device via a serial port in C#.
I do not always have the device available to do physical testing with. Is there a way I can simulate a device on a serial port so that it responds in an ideal manner?

PICyourBrain
- 9,976
- 26
- 91
- 136
6
votes
2 answers
Simulating non-stationary processes
arima.sim() works like a charm for simulating a stationary time series, but I can't find any built-ins or packages that simulate a non-stationary time series parameterized by otherwise arbitrary arima coefficients. Does anything like this exist…

Spencer
- 860
- 8
- 16
6
votes
1 answer
Best lightning generation/simulation algorithm?
So I need some algorithm for programing lightning path generation. Which one is fastest and at the same time realistic?

Rella
- 65,003
- 109
- 363
- 636
6
votes
2 answers
Simulate Raspberry Pi GPIO signal
I'm new on Raspberry Pi and I would to know how can we simulate/mock the sensors (or GPIO) so I can test just my python code, mocking the Highs and Lows of the pins?
Thanks in advance!

André Schuster
- 165
- 6
- 18
6
votes
1 answer
Latitude/Longitude Generation to be used as sample data
I am writing a demo web application that tracks multiple devices through my companies platform. I have the app working, but need a csv file that will simulate devices moving on a map as if they were a tracker attached to a car. The simulator works…

Alek Hurst
- 4,527
- 5
- 19
- 24
6
votes
4 answers
n-armed bandit simulation in R
I'm using Sutton & Barto's ebook Reinforcement Learning: An Introduction to study reinforcement learning. I'm having some issues trying to emulate the results (plots) on the action-value page.
More specifically, how can I simulate the greedy value…

Fernando
- 7,785
- 6
- 49
- 81
6
votes
3 answers
Count the number of adjacent boxes
Suppose I have a set of (X,Y) coordinates of 1000 boxes.
( x1, y1) ( x2, y2) Area
(0.0000,0.0000) (0.3412,0.4175) 0.1424
(0.7445,0.0000) (1.0000,0.6553) 0.1674
(0.7445,0.6553) …

aries0152
- 381
- 1
- 14
6
votes
1 answer
full precision may not have been achieved in 'qbeta'
I am running R version 2.14.0 on a PC which uses Windows 7 Ultimate (Intel Core i5-2400 3GHz processor with 8.00GB ram). Let me know if other specs needed.
I am trying to simulate correlated beta distributed data. The method I am using is an…

Chris
- 3,401
- 5
- 33
- 42
6
votes
2 answers
Simulated MouseEvent not working properly OSX
Back in 2010, Pierre asked this question (his accepted answer doesn't work for me).
I'm having the same problem: I am able to successfully move the mouse around (and off!?!) the screen programmatically from my Cocoa Application, however bringing the…

Max Chuquimia
- 7,494
- 2
- 40
- 59