Skip to content

Broadening input types for ApproximatePermutationTest #314

@marcpabst

Description

@marcpabst

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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions