|
BioDynaMo
v1.05.125-2619fe54
|
Classes | |
| struct | Algorithm |
| An interface for creating new optimization algorithms. More... | |
| struct | AlgorithmRegistry |
| Registry of all optimization algorithms. More... | |
| class | CopyExecutionContext |
| struct | Counter |
| class | Database |
| class | DataTransformer |
| class | GenericReducer |
| class | LinearTransformer |
| class | LineGraph |
| struct | ParameterSweep |
| Perform an exhaustive sweep across specified parameters. More... | |
| struct | ParticleSwarm |
| struct | Reducer |
| class | Style |
| class | TimeSeries |
Functions | |
| template<typename T > | |
| T | Reduce (Simulation *sim, Functor< void, Agent *, T * > &agent_functor, Functor< T, const SharedData< T > & > &reduce_partial_results, Functor< bool, Agent * > *filter=nullptr) |
| uint64_t | Count (Simulation *sim, Functor< bool, Agent * > &condition, Functor< bool, Agent * > *filter=nullptr) |
| Algorithm * | CreateOptimizationAlgorithm (OptimizationParam *opt_params) |
| BDM_REGISTER_ALGO (ParameterSweep) | |
| BDM_REGISTER_ALGO (ParticleSwarm) | |
| template<typename Lambda > | |
| void | DynamicNestedLoop (const std::vector< OptimizationParamType * > &containers, const Lambda &action) |
| real_t | Experiment (Functor< void, Param *, TimeSeries * > &simulation, size_t iterations, const Param *param, TimeSeries *real_ts=nullptr, Functor< void, const std::vector< TimeSeries > &, const TimeSeries &, const TimeSeries & > *post_simulation=nullptr) |
| bdm::experimental::BDM_REGISTER_ALGO | ( | ParameterSweep | ) |
| bdm::experimental::BDM_REGISTER_ALGO | ( | ParticleSwarm | ) |
|
inline |
Counts the number of agents for which condition evaluates to true. Let's assume we want to count all infected agents in a virus spreading simulation.
The optional argument filter allows to count only a subset of all agents.
NB: For better performance consider using Counter instead.
|
inline |
Definition at line 71 of file algorithm_registry.h.
|
inline |
Definition at line 30 of file dynamic_loop.h.
|
inline |
Definition at line 36 of file experiment.h.
|
inline |
Iterates over all agents executing the agent_functor and updating a a thread-local and therefore partial result. The second parameter specifies how these partial results should be combined into a single value. Let's assume we want to sum up the data attribute of all agents.
The optional argument filter allows to reduce only a subset of all agents.
NB: For better performance consider using GenericReducer instead.
1.8.17