I was poking around the ApproximatePermutationTest function and this is the current signature:
function ApproximatePermutationTest(rng::AbstractRNG, x::AbstractVector{R}, y::AbstractVector{S},
f::Function, n::Int) where {R<:Real,S<:Real}
I'm curious about the decision to restrict the input types for x and y to AbstractVector{<:Real}. It seems to me that the function might be more flexible if it accepts a broader range of input types, provided that the function f returns a subtype of Real.
Would expanding the accepted input types for x and y introduce any significant issues?
I was poking around the ApproximatePermutationTest function and this is the current signature:
I'm curious about the decision to restrict the input types for
x
andy
toAbstractVector{<:Real}
. It seems to me that the function might be more flexible if it accepts a broader range of input types, provided that the function f returns a subtype ofReal
.Would expanding the accepted input types for x and y introduce any significant issues?