Velocity modifier that adapts preferred velocity to account for local density. This produces a density-dependent behavior which can conform to the fundamental diagram (depending on the settings.)
More...
#include <FundamentalDiagramModifier.h>
|
| struct | FDParam |
| | Defines the parameters which define the density-aware behavior. More...
|
| |
|
|
| FDModifier () |
| | Constructor.
|
| |
| | FDModifier (FloatGenerator *buffer, FloatGenerator *factor, float sigmaAgent, float sigmaObstacle) |
| | Constructor. More...
|
| |
|
BFSM::VelModifier * | copy () const |
| | Copy method for this velocity modifier.
|
| |
| void | adaptPrefVelocity (const Agents::BaseAgent *agent, Agents::PrefVelocity &pVel) |
| | Adapts the given agent's preferred velocity to adhere to the fundamental diagram. More...
|
| |
| void | setBuffer (FloatGenerator *buffer) |
| | Sets the stride buffer. More...
|
| |
| void | setFactor (FloatGenerator *factor) |
| | Sets the stride factor. More...
|
| |
| void | setSigmaAgent (float sigma) |
| | Sets the agent sigma. More...
|
| |
| void | setSigmaObstacle (float sigma) |
| | Sets the agent sigma. More...
|
| |
Velocity modifier that adapts preferred velocity to account for local density. This produces a density-dependent behavior which can conform to the fundamental diagram (depending on the settings.)
| FDModifier::FDModifier::FDModifier |
( |
FloatGenerator * |
buffer, |
|
|
FloatGenerator * |
factor, |
|
|
float |
sigmaAgent, |
|
|
float |
sigmaObstacle |
|
) |
| |
Constructor.
- Parameters
-
| buffer | The stride buffer gemerator. This modifier takes ownership of the provided generator. |
| factor | The stride factor gemerator. This modifier takes ownership of the provided generator. |
| sigmaAgent | Sigma for agent density estimation |
| sigmaObstacle | Sigma for obstacle density estimation |
| void FDModifier::FDModifier::adaptPrefVelocity |
( |
const Agents::BaseAgent * |
agent, |
|
|
Agents::PrefVelocity & |
pVel |
|
) |
| |
Adapts the given agent's preferred velocity to adhere to the fundamental diagram.
- Parameters
-
| agent | The agent on whom we are operating. |
| pVel | The input preferred velocity of the agent. |
| void FDModifier::FDModifier::setBuffer |
( |
FloatGenerator * |
buffer | ) |
|
|
inline |
Sets the stride buffer.
- Parameters
-
| buffer | The stride buffer for the adherence model |
| void FDModifier::FDModifier::setFactor |
( |
FloatGenerator * |
factor | ) |
|
|
inline |
Sets the stride factor.
- Parameters
-
| factor | The stride factor for the adherence model |
| void FDModifier::FDModifier::setSigmaAgent |
( |
float |
sigma | ) |
|
|
inline |
Sets the agent sigma.
- Parameters
-
| sigma | Sigma for agent density estimation |
| void FDModifier::FDModifier::setSigmaObstacle |
( |
float |
sigma | ) |
|
|
inline |
Sets the agent sigma.
- Parameters
-
| sigma | Obstacle sigma for Probability Density Estimation |
The documentation for this class was generated from the following files: