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/src/weights.md
+13-1Lines changed: 13 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -41,6 +41,16 @@ w = ProbabilityWeights([0.2, 0.1, 0.3])
41
41
w =pweights([0.2, 0.1, 0.3])
42
42
```
43
43
44
+
### `ExponentialWeights`
45
+
46
+
Exponential weights are a common form of temporal weights which assign exponentially decreasing
47
+
weight to past observations.
48
+
49
+
```julia
50
+
w =ExponentialWeights([0.1837, 0.2222, 0.2688, 0.3253])
51
+
w =eweights(4, 0.173) # construction based on length and rate parameter
52
+
```
53
+
44
54
### `Weights`
45
55
46
56
The `Weights` type describes a generic weights vector which does not support all operations possible for `FrequencyWeights`, `AnalyticWeights` and `ProbabilityWeights`.
@@ -66,9 +76,11 @@ The following constructors are provided:
0 commit comments