You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/usage.rst
+25-18Lines changed: 25 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -34,10 +34,10 @@ Using Built-in Datasets
34
34
35
35
# Get the estimated parameters
36
36
result = estimator.get_parameters()
37
-
gamma = result['gamma']
37
+
gamma = result.gamma
38
38
39
39
# Print full results
40
-
print(estimator)
40
+
print(result)
41
41
42
42
Using degree sequence from networkx graphs
43
43
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@@ -57,10 +57,10 @@ Using degree sequence from networkx graphs
57
57
58
58
# Get the estimated parameters
59
59
result = estimator.get_parameters()
60
-
gamma = result['gamma']
60
+
gamma = result.gamma
61
61
62
62
# Print full results
63
-
print(estimator)
63
+
print(result)
64
64
65
65
Available Estimators
66
66
------------------
@@ -84,7 +84,7 @@ The package provides several estimators for tail estimation. For details on each
84
84
Results
85
85
-------
86
86
87
-
The full result can be obtained by ``estimator.get_parameters()``, which returns a dictionary. This includes:
87
+
The full result can be obtained by ``result = estimator.get_parameters()``. You can either print the result, or access individual attributes (e.g., `result.gamma`). The output will include:
88
88
89
89
- ``gamma``: Power law exponent (γ = 1 + 1/ξ)
90
90
- ``xi_star``: Tail index (ξ)
@@ -96,24 +96,31 @@ The full result can be obtained by ``estimator.get_parameters()``, which returns
96
96
Example Output
97
97
------------
98
98
99
-
When you ``print(estimator)`` after fitting, you will get the following output:
99
+
When you ``print(result)`` after fitting, you will get the following output:
0 commit comments