Questions tagged [timestep]
36 questions
1
vote
1 answer
scipy.integrate.odeint time dependend stepsize
I have the following problem:
I have to use an ode-solver to solve a chemical reaction equation. The rate constants are functions of time and can suddenly change (puls from electric discharge).
One way to solve this is to keep the stepsize very…

Matthias K
- 93
- 9
1
vote
0 answers
Set step-time as a variable in Simulink exported code
I've developed a controller in Simulink and am trying to export it as a pure C class using Simulink coder for deployment on our microcontroller. We are using a fixed step solver in simulation, however, when the exported code gets used on our actual…

Jeff
- 11
- 1
0
votes
1 answer
Fix Your Timestep: Why not just plug in the remaining dt?
Gaffer suggests doing linear interpolation between the previous state and the current state for rendering. The current state being 1 full fixed timestep apart from the previous state. But why not just plug in the remaining dt into the normal…

user363406
- 75
- 4
0
votes
0 answers
Can we use time_step = 1 for sample by sample inference using LSTM?
I am using TensorFlow/ keras to train an LSTM model.
The input to LSTM has to be in the following format: [sample, timestep, n_features]
I collect sensor measurements from the robot (forces, moments) as my data and then I perform the windowing…

danielstankw
- 26
- 4
0
votes
0 answers
Question regarding a While loop for time stepping
I am trying to write a While loop to track time. The code uses a default time step value. However, when the simulation time hits a desired time value, I want the code to recompute the time step to hit the desired value, but revert the time step to…

Shah Saud Alam
- 1
- 2
0
votes
0 answers
Find the index of specific date in nc file
I want to find the time index corresponding to the date 2018-08-21
import netCDF4
from netCDF4 import num2date, date2num, date2index
import numpy as np
f=netCDF4.Dataset('../t.cdf')
times=f.variables['time']
dates = num2date(times[:],…
0
votes
1 answer
Influx at specific time with changing time step in DeSolve
I am making a population distribution model with ODEs and DDEs in DeSolve with the method lsoda.
In this model I want to have an influx of the population at a specific time (a specific day).
A very simple example:
dn1dt=influx - mortality
The influx…

Laura
- 35
- 5
0
votes
1 answer
Python Gravity Simulator only plots straight lines
I'm trying to make a basic gravity sim using py but for some reason it plots all the lines as straight, I looked at a couple of examples when I got stuck but they all use similar equations / ways of plotting the data so not sure where I went wrong…

Epicyon Haydeni
- 3
- 2
0
votes
1 answer
maximum time step of IDA solver in Open Modelica
In Open Modelica, in the settings of IDA solver, we can define the initial and maximum time step as well. In a simulation, I have set these parameters, but after simulation and checking the solutions points, I found the IDA has not bounded to the…

Alireza Masoom
- 129
- 6
0
votes
0 answers
Combining timesteps in R
I want to combine 6-hour timesteps that are immediately following one another in order to see maximum Total_IVT during a single storm event. For example, 2019-5-15 has several observations at Hours 12 and 18, and the next day has an observation at…

Parit
- 55
- 7
0
votes
2 answers
Relationship between memory cell and time step in LSTM
i'm studying LSTM model.
Does one memory cell of hidden layer in LSTM correspond to one timestep?
example code) model.add(LSTM(128, input_shape = (4, 1)))
When implementing LSTMs in Keras, can set the number of memory cells, as in the example code,…

phyzik
- 1
0
votes
1 answer
Keras loaded model output is different from the training model output
When I train my model it has a two-dimension output - it is (none, 1) - corresponding to the time series I'm trying to predict. But whenever I load the saved model in order to make predictions, it has a three-dimensional output - (none, 40, 1) -…

Marlon Teixeira
- 334
- 1
- 14
0
votes
3 answers
How to calculate distance and time between two locations
Here's a sample of some data
Tag.ID TimeStep.coa Latitude.coa Longitude.coa
1 1657 2017-08-17 12:00:00 72.4 -81.1
2 1657 2017-08-17 18:00:00 72.3 …

ljh2001
- 391
- 3
- 17
0
votes
0 answers
How do I output multiple time steps in a classification NN?
I would like to predict multiple timesteps into the future. My current NN outputs a sparse classification of 0, 1 or 2.
Sparse classifications outputs via a SoftMax Dense layer with 3 neurons to correspond to the three categories mentioned above.…

Just_Learning
- 31
- 1
- 5
0
votes
1 answer
What is the difference between timesteps and features in LSTM?
I have a dataframe representing numerical values in many time periods, and I have formatted that dataframe in the way there are represented as a concatenation of previous values. For example:
+------+------+------+
| t1 | t2 | t3 …

jartymcfly
- 1,945
- 9
- 30
- 51