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.
3,890
questions
1
vote
1answer
46 views
Random systematic movement in pygame
I am making a Covid simulator and need my balls to move around randomly. However, I want them to stay moving in the first random direction that the chose, and only chnage direction if it hits another ...
0
votes
1answer
24 views
drawing objects on pygame
I am restarting some code for a covid simulation as I cant use the collide function in my current one. I have been able to draw the basic background, and draw one cell. However, when i try create the ...
-1
votes
1answer
32 views
Is it possible to mirror a log-In popup window of a web-App using react Native for a mobile App?
Is it possible to build a React Native App with a log-In screen that simulate/mirror a popup window of web-App having in mind that we don't have access neither to the server nor to the database of ...
2
votes
3answers
57 views
R: How would I repeatedly simulate how many attempts before a success on a 1/10 chance? (and record how many attempts it took?)
R and probability noob here. I'm looking to create a histogram that shows the distribution of how many attempts it took to return a heads, repeated over 1000+ simulated runs on the equivalent of an ...
0
votes
0answers
20 views
Buffon's needle in python [duplicate]
I wrote a simple program to calculate pi from the Buffon's needle experiment. But I always keep getting approx 2.5 instead of 3.14159. Here is my code...
from random import random
from math import ...
-4
votes
0answers
19 views
Simulation study for bivariate normal population [closed]
Am trying to generate bivariate normal population on rstudio but it's show negative values due to this reason when I select sample it's also negative.when I run simulation study through for loop ...
0
votes
0answers
6 views
What are the top two common frameworks/programming languages for rendering movement of objects in 2d?
I'm interested in simulating and rendering movement of objects (just basic shapes like circles/triangles; up to a few hundred objects) on a graph (i.e. a set of arcs and nodes). Bonus if that graph ...
2
votes
1answer
29 views
How to simulate a stochastic process until all elements of a path are positive?
I want to simulate a path for certain a stochastic process in continuous time using Python. I wrote the following function to simulate it (np refers to numpy of course):
def simulate_V(v0, psi, theta, ...
0
votes
1answer
46 views
SFML moving sprite in random fixed paths
So I am making a simulation in C++ and I am using SFML for graphics. I am going to use this image here to explain what I am trying to do. So here's the issue I am facing.
I spawn an object (at entry) ...
0
votes
1answer
17 views
simulation of linear regression scikit-learn python
I would like to run a linear regression but this code generates an error starting from "reg = LinearRegression()"
import pandas as pd
from sklearn.linear_model import LinearRegression
from ...
0
votes
4answers
65 views
How to do simulation without loop?
I am writing a simulation function to calculate the power of t test in R. However, it is not efficient to write loops in R, is there any other way that I can achieve my goal without a loop?
#Define a ...
0
votes
0answers
10 views
Adding a simple python script that communicates with Drone on PX4 simulator using ROS?
I am new to ROS and PX4 drone simulating.
I have set everything up, but I couldn't find any good guide to add some script to PX4 firmware. I have been struggling for 2 months. I only want to make the ...
1
vote
1answer
28 views
LCD doesn't work in a simulated enviroment
I'm using Tinkercad, and since it's my first time programming an LCD I just copied the procedure to connect the pins and make it work.
The thing is that it just lights up without displaying anything, ...
0
votes
1answer
58 views
Efficient For Loops Unity C#
I'm running a robot simulation in unity where each of the 300 robots runs the same script and I'm using RayCast for communication between robots. Each robot cast 36 Rays in 10 degree increments to ...
0
votes
0answers
31 views
Simulating data for ordered logistic regression in R
I'm trying to create an ordered logistic regression model with 4 independent variables, where my 1 dependent variable has an ordinal scale with 3 levels. I want to create this model with an artificial ...