Skip to content

Commit 8ed0ce8

Browse files
authored
Merge pull request #13 from s-ccs/fix-inputbug
fix bug where statfun was not used
2 parents d96b726 + e7d399d commit 8ed0ce8

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

src/cluster.jl

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -35,13 +35,9 @@ function clusterdepth(
3535
statfun = nothing,
3636
permfun = nothing,
3737
)
38-
if stat_type == :onesample_ttest
39-
if isnothing(statfun!)
40-
statfun! = studentt!
41-
end
42-
if isnothing(statfun)
43-
statfun = studentt
44-
end
38+
if stat_type == :onesample_ttest && isnothing(statfun!) && isnothing(statfun)
39+
statfun! = studentt!
40+
statfun = studentt
4541
end
4642
if perm_type == :sign
4743
if isnothing(permfun)

0 commit comments

Comments
 (0)