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: src/FSharp.Stats/DistanceMetrics.fs
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -124,8 +124,8 @@ module DistanceMetrics =
124
124
125
125
/// <summary>The [Minkowski distance](https://en.wikipedia.org/wiki/Minkowski_distance) between two vectors of order `p`.</summary>
126
126
/// <remarks>The two vectors need not have equal lengths: when one vectors is exhausted any remaining elements in the other vectors are ignored.</remarks>
127
-
/// <paramname="s1">first vector</param>
128
-
/// <paramname="s2">second vector</param>
127
+
/// <paramname="v1">first vector</param>
128
+
/// <paramname="v2">second vector</param>
129
129
/// <paramname="p">float constrained to `p > 0`</param>
130
130
/// <returns>Minkowski distance between elements of given vectors. Returns NaN if vectors contain NaN.</returns>
131
131
/// <example>
@@ -163,8 +163,8 @@ module DistanceMetrics =
163
163
/// <summary>The [Minkowski distance](https://en.wikipedia.org/wiki/Minkowski_distance) between two vectors (ignores NaN) of order `p`.</summary>
164
164
/// <remarks>Non-regular differences between the sequences are ignored.
165
165
/// The two vectors need not have equal lengths: when one vectors is exhausted any remaining elements in the other vectors are ignored.</remarks>
166
-
/// <paramname="s1">first vector</param>
167
-
/// <paramname="s2">second vector</param>
166
+
/// <paramname="v1">first vector</param>
167
+
/// <paramname="v2">second vector</param>
168
168
/// <paramname="p">float constrained to `p > 0`</param>
169
169
/// <returns>Minkowski distance between elements of given vectors.</returns>
170
170
/// <example>
@@ -319,8 +319,8 @@ module DistanceMetrics =
319
319
320
320
/// <summary>The [Minkowski distance](https://en.wikipedia.org/wiki/Minkowski_distance) between two arrays of order `p`.</summary>
321
321
/// <remarks>The two arrays need not have equal lengths: when one array is exhausted any remaining elements in the other array are ignored.</remarks>
322
-
/// <paramname="s1">first array</param>
323
-
/// <paramname="s2">second array</param>
322
+
/// <paramname="a1">first array</param>
323
+
/// <paramname="a2">second array</param>
324
324
/// <paramname="p">float constrained to `p > 0`</param>
325
325
/// <returns>Minkowski distance between elements of given arrays. Returns NaN if arrays contain NaN.</returns>
326
326
/// <example>
@@ -358,8 +358,8 @@ module DistanceMetrics =
358
358
/// <summary>The [Minkowski distance](https://en.wikipedia.org/wiki/Minkowski_distance) between two arrays (ignores NaN) of order `p`.</summary>
359
359
/// <remarks>Non-regular differences between the sequences are ignored.
360
360
/// The two arrays need not have equal lengths: when one array is exhausted any remaining elements in the other array are ignored.</remarks>
361
-
/// <paramname="s1">first array</param>
362
-
/// <paramname="s2">second array</param>
361
+
/// <paramname="a1">first array</param>
362
+
/// <paramname="a2">second array</param>
363
363
/// <paramname="p">float constrained to `p > 0`</param>
364
364
/// <returns>Minkowski distance between elements of given arrays.</returns>
Copy file name to clipboardExpand all lines: src/FSharp.Stats/Distributions/Discrete/Hypergeometric.fs
+10-5Lines changed: 10 additions & 5 deletions
Original file line number
Diff line number
Diff line change
@@ -100,7 +100,6 @@ type Hypergeometric =
100
100
101
101
/// <summary>Produces a random sample using the current random number generator (from GetSampleGenerator()).<br />No parameter checking!</summary>
102
102
/// <remarks></remarks>
103
-
/// <paramname="SampleUnchecked"></param>
104
103
/// <paramname="N"></param>
105
104
/// <paramname="K"></param>
106
105
/// <paramname="n"></param>
@@ -253,11 +252,17 @@ type Hypergeometric =
253
252
254
253
/// <summary> Initializes a hypergeometric distribution.
255
254
///
256
-
/// <summary>The hypergeometric distribution is a discrete probability distribution<br />that describes the probability of `k` successes (random draws for which the object<br />drawn has a specified feature) in `n` draws, without replacement, from a finite<br />population of size `N` that contains exactly `K` objects with that feature,<br />wherein each draw is either a success (`1.0`) or a failure (`0.0`).</summary><br /><paramname="N">The population size</param><br /><paramname="K">The number of success states in the population</param><br /><paramname="n">The number of draws</param></summary>
255
+
/// <summary>
256
+
/// The hypergeometric distribution is a discrete probability distribution
257
+
/// that describes the probability of `k` successes (random draws for which the object
258
+
/// drawn has a specified feature) in `n` draws, without replacement, from a finite
259
+
/// population of size `N` that contains exactly `K` objects with that feature,
260
+
/// wherein each draw is either a success (`1.0`) or a failure (`0.0`).
261
+
/// </summary>
262
+
/// <paramname="N">The population size</param>
263
+
/// <paramname="K">The number of success states in the population</param>
Copy file name to clipboardExpand all lines: src/FSharp.Stats/Distributions/Discrete/NegativeBinomial.fs
+7-4Lines changed: 7 additions & 4 deletions
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
namespaceFSharp.Stats.Distributions.Discrete
1
+
Fkspace FSharp.Stats.Distributions.Discrete
2
2
3
3
openSystem
4
4
openFSharp.Stats
@@ -154,10 +154,13 @@ type NegativeBinomial_trials =
154
154
sprintf "NegativeBinomial_trials(r = %i, p = %f)" r p
155
155
156
156
/// <summary> Initializes a negative binomial distribution.
157
-
/// <summary>The negative binomial distribution is a discrete probability distribution<br />that models the number of trials needed x to get the rth success in repeated <br />independent Bernoulli trials with probability p.<br /></summary><br /><paramname="r">The number of success states</param><br /><paramname="p">The probability of each independent bernoulli trial</param><br /><paramname="x">The number of trials until the rth success</param></summary>
157
+
/// The negative binomial distribution is a discrete probability distribution
158
+
/// that models the number of trials needed x to get the rth success in repeated
159
+
/// independent Bernoulli trials with probability p.
160
+
/// </summary>
161
+
/// <paramname="r">The number of success states</param>
162
+
/// <paramname="p">The probability of each independent bernoulli trial</param>
Copy file name to clipboardExpand all lines: src/FSharp.Stats/Distributions/Empirical.fs
+2-2Lines changed: 2 additions & 2 deletions
Original file line number
Diff line number
Diff line change
@@ -327,8 +327,8 @@ module Empirical =
327
327
/// <summary>Merges two maps into a single map. If a key exists in both maps, the value is determined by f with the first value being from mapA and the second originating from mapB.</summary>
328
328
/// <paramname="equalBandwidthOrNominal">Is the binwidth equal for both distributions? For nominal data set to true.</param>
329
329
/// <paramname="f">Function to transform values if key is present in both histograms. `histA-value → histB-value → newValue`</param>
330
-
/// <paramname="mapA">Empirical distribution A</param>
331
-
/// <paramname="mapB">Empirical distribution B</param>
330
+
/// <paramname="histA">Empirical distribution A</param>
331
+
/// <paramname="histB">Empirical distribution B</param>
332
332
/// <remarks>When applied to continuous data the bandwidths must be equal!</remarks>
333
333
/// <remarks>This function is not commutative! (mergeBy f a b) is not equal to (mergeBy f b a)</remarks>
334
334
/// <returns>New frequency map that results from merged maps mapA and mapB. Values from keys that are present in both maps are handled by f</returns>
0 commit comments