Questions tagged [simulation]

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.

5194 questions
5
votes
1 answer

How to get distribution on side of graph Plotly, Python?

so I am graphing some simulations of time series data where I want to be able to visualize the distribution of the ending values in Python. Given the plot of simulated paths, I want to be able to take the values at the end (time = T) and use a…
finman69
  • 309
  • 1
  • 8
5
votes
1 answer

What does it mean to have a transient state or a transient phase in an Ising model?

I downloaded a simple implementation of the Ising model in C# from this link. I have understood more or less the entire code except the following routine: private static void transient_results(double T) { for (int a = 1; a <=…
user366312
  • 16,949
  • 65
  • 235
  • 452
5
votes
1 answer

gazebo11 - symbol lookup error: libavfilter.so.7d

I am trying to run Gazebo 11 on my Ubuntu 20.04 system. After the installations, when I run gazebo with terminal, I encounter with this error below: gazebo: symbol lookup error: /lib/x86_64-linux-gnu/libavfilter.so.7: undefined symbol:…
fu3ry
  • 151
  • 7
5
votes
3 answers

IDE for GPSS language

GPSS stands for General Purpose Simulation System. And it looks like that the language is more dead than alive (I didn't find good and actual blog or web site). I began studying this language a few weeks ago, and faced with the lack of good IDE. I…
Sergei Danielian
  • 4,938
  • 4
  • 36
  • 58
5
votes
5 answers

Use of global variables in simulation code

Possible Duplicate: Are global variables bad? I am writing a simulation code making use of material and energy specific data. This data is stored in global arrays, because once uploaded, they are used during the simulation and should be…
noste99
  • 375
  • 3
  • 14
5
votes
1 answer

Use arima.sim to simulate ARIMA 1,1,1 with drift in R

I am trying to use ARIMA sim package to simulate an ARIMA simulation with a drift. My problem is that I cannot seem to get it to work. I need to get something like this: My code is producing this though: > mean(datatime) [1] 15881.56 >…
5
votes
0 answers

Is there a way to simulate time series data with a specific rolling mean and autocorrelation in R?

I have an existing time series (1000 samples) and calculated the rolling mean using the filter() function in R, averaging across 30 samples each. The goal of this was to create a "smoothed" version of the time series. Now I would like to create…
5
votes
4 answers

How can the friction drag be calculated for a moving and spinning disk on a 2D surface?

Let's consider a disk with mass m and radius R on a surface where friction u also involved. When we give this disk a starting velocity v in a direction, the disk will go towards that direction and slow down and stop. In case the disk has a rotation…
f3r3nc
  • 620
  • 7
  • 15
5
votes
1 answer

Adding ties in a network based on node attribute (weight)

I am simulating network change over time using igraph in r and am looking for an efficient and scalable way to code this for use in business. The main drivers of network change are: New nodes New ties New node weights In the first stage, in the…
wake_wake
  • 1,332
  • 2
  • 19
  • 46
5
votes
1 answer

Multiprocessing Strategy - Shared Nested Object

I am working on a research project and want to apply parallelization to improve execution speed. I have worked with the multiprocessing library before, but only for number crunching. I will try to briefly describe the setting and the goal that I…
FloLie
  • 1,820
  • 1
  • 7
  • 19
5
votes
3 answers

Discrete event simulation framework for .NET

Does anyone have an experience with some discrete event simulation library that could be used in .NET (C#)? Despite the basic functionality for queing events and dispatching them, it would be fine to have some non-deterministic behavior (e.g.…
Kuba
  • 131
  • 3
  • 9
5
votes
1 answer

Simulation of suicide burn in openai-gym's LunarLander

I want to simulate suicide burn to learn and understand rocket landing. OpenAI gym already has an LunarLander enviroment which is used for training reinforcement learning agents. I am using this enviroment to simulate suicide burn in python. I have…
Eka
  • 14,170
  • 38
  • 128
  • 212
5
votes
1 answer

How to pick the nearest marker from clicked point in vispy?

In vispy library I have a list of points shown as markers, and I want to change the color of(or just get the index of) the point which is nearest to the clicked point. I can get the pixels of the clicked point by event.pos, but i need its actual…
Atreyagaurav
  • 1,145
  • 6
  • 15
5
votes
1 answer

No collision is detected in n-body simulation using ReactPhysics3D

I am currently working on n-body simulation using ReactPhysics3D(https://www.reactphysics3d.com/). I made simple simulation of collision of two spheres. Then, I print the coordinates of the two spheres as the simulation runs. The problem is that…
tesio
  • 401
  • 2
  • 6
  • 10
5
votes
1 answer

How do I generate data with specified mean, variance, skewness, kurtosis in Python?

I want to generate data in Python that behaves like real stock market data, which means I need to be able to specify and play around with all of the first four moments. Only being able to control skewness or only kurtosis is unfortunately not…
Chisq
  • 117
  • 1
  • 9