Package org.evoludo.simulator.models
Interface Discrete
public interface Discrete
Common interface for all models with discrete strategy sets.
-
Method Summary
Modifier and TypeMethodDescriptiondefault double
getMonoScore
(int id, int idx) Calculate and return the payoff/score of individuals in monomorphic populations with trait/strategyidx
but also deals with payoff accounting (averaged versus accumulated).
-
Method Details
-
getMonoScore
default double getMonoScore(int id, int idx) Calculate and return the payoff/score of individuals in monomorphic populations with trait/strategyidx
but also deals with payoff accounting (averaged versus accumulated).- Parameters:
id
- the id of the population for multi-species modelsidx
- trait/strategy- Returns:
- payoff/score in monomorphic population with trait/strategy
idx
. ReturnsNaN
if scores ill defined - See Also:
-