Package org.evoludo.simulator.models
Class Markers
Object
Markers
The class to manage customised markers for graphs.
- Author:
- Christoph Hauert
-
Field Details
-
Constructor Details
-
Markers
Instantiate new population update for use in IBSmodel
s.- Parameters:
model
- the model using this player update
-
-
Method Details
-
addMarker
public boolean addMarker(double[] aMark) Add marker to list of markers. Markers are provided asdouble[]
arrays to indicate special frequencies/densities. By default markers are shown as solid dots or lines, respectively.- Parameters:
aMark
- the marker to add- Returns:
true
if successfull
-
addMarker
public boolean addMarker(double[] aMark, boolean filled) Add marker to list of markers. Markers are provided asdouble[]
arrays to indicate special frequencies/densities. Iffilled==true
, markers are shown as solid dots or lines, respectively and as open dots (or dashed lines), otherwise. This is useful, for example, to indicate the stability of equilibria.In multi-species modules the markers for each species are concatenated into a single array. The frequencies/densities of the marker for the first species are stored in
aMark[0]
throughaMark[n1]
wheren1
denotes the number of traits in the first species. The current frequencies/densities of the second species are stored inaMark[n1+1]
throughaMark[n1+n2]
wheren2
denotes the number of traits in the second species, etc.- Parameters:
aMark
- the marker to addfilled
- the flag to indicate whether the marker should be filled- Returns:
true
if successfull- See Also:
-
getMarkers
Get the list of markers. This serves to mark special values in different kinds of graphs.- Returns:
- the list of markers
-