Class for analyzing the runs.
Set the labels for the analyzis.
If we add the list of labels, it keeps the order. Otherwise the labels will be sorted.
Parameter:
- labels: string or list of strings
This can be:
- ‘all’ will include all labels available,
- one label we want to analyze,
- the start of the labels we want to analyze,
- the list of the labels we want to analyze.
Returns:
With the labels it have set.
Example:
>>> sorted(r.runs.keys()) # All labels
['2000_007', '2000_008', '2000_009', '2000_010', '2000_011']
>>> r.set_labels("all")
['2000_007', '2000_008', '2000_009', '2000_010', '2000_011']
>>> r.set_labels("2000_008")
['2000_008']
>>> r.set_labels("2000_01")
['2000_010', '2000_011']
>>> r.set_labels(["2000_009", "2000_007"])
['2000_009', '2000_007']
Plots the energies in the steps of the generation.
It plots for all the labels in the self.labels.
Plots the divs in the steps of the generation.
It plots for the first last in the self.labels.
Plots the degree distribution of a generated network for each label.
Plots the degree distribution of a generated network for one label.
This label come from the label argument or from the last item of the self.labels.
Returns with the degdist object.