Skip to content

Commit be90acd

Browse files
authored
Adjust docs on mean, varWeighted. (#19)
1 parent 3d7d66d commit be90acd

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Diff for: src/ArrayFire/Statistics.hs

+2-2
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ import ArrayFire.Internal.Types
3737

3838
-- | Calculates 'mean' of 'Array' along user-specified dimension.
3939
--
40-
-- >>> mean 0 ( vector @Int 10 [1..] )
40+
-- >>> mean ( vector @Int 10 [1..] ) 0
4141
-- ArrayFire Array
4242
-- [1 1 1 1]
4343
-- 5.5000
@@ -95,7 +95,7 @@ var arr (fromIntegral . fromEnum -> b) d =
9595

9696
-- | Calculates 'varWeighted' of 'Array' along user-specified dimension.
9797
--
98-
-- >>> varWeighted 0 ( vector @Int 10 [1..] ) ( vector @Int 10 [1..] )
98+
-- >>> varWeighted ( vector @Int 10 [1..] ) ( vector @Int 10 [1..] ) 0
9999
-- ArrayFire Array
100100
-- [1 1 1 1]
101101
-- 5.5000

0 commit comments

Comments
 (0)