Autopysta
Loading...
Searching...
No Matches
newell_random_acceleration.h
Go to the documentation of this file.
1
10#ifndef _NEWELL_RANDOM_ACCELERATION
11#define _NEWELL_RANDOM_ACCELERATION
12
14#include <math.h>
15#include <algorithm>
16#include "newell.h"
17#include "point.h"
18#include "clock.h"
19#include "Exception.h"
20#include "random_generator.h"
21
29private:
30 float ksi_std_dev;
31
39 void initialize_parameters(p_newell_random_acceleration* p);
40
41public:
48
57
65 void validate_parameters(params* p = (params*)nullptr) override;
66
77 point* new_point(generalized_trajectory* leader, trajectory* follower, params* p = (params*)nullptr) override;
78};
79#endif
Base class for different types of trajectories.
Definition trajectory.h:26
Laval et al. (2014) car-following model with random acceleration behavior.
Definition newell_random_acceleration.h:28
point * new_point(generalized_trajectory *leader, trajectory *follower, params *p=(params *) nullptr) override
Computes the next point in the follower's trajectory considering random acceleration.
newell_random_acceleration()
Default constructor for the random acceleration model.
void validate_parameters(params *p=(params *) nullptr) override
Validates the model parameters for consistency.
newell_random_acceleration(p_newell_random_acceleration *p)
Constructor with custom parameters for Newell's and Laval's models.
Newell's car-following model (2002).
Definition newell.h:34
Parameter class for the random acceleration model based on Laval et al. (2014).
Definition p_newell_random_acceleration.h:20
Base class for car-following model parameters.
Definition params.h:24
Represents a point in time for a vehicle in a traffic simulation.
Definition point.h:23
Represents a dynamic trajectory of a moving object.
Definition trajectory.h:59
File for the clock class definition (short description).
Header file for Newell's car-following model class definition.
Header file for the p_newell_random_acceleration class definition.
File for the point class definition.
Provides utilities for generating random numbers using various probability distributions.