test_sop
Notedocblock
test_sop(data, d1, d2; chart_choice, refinement=OrdinaryType(), alpha=0.05, add_noise=false)Perform the asymptotic hypothesis test for spatial dependence based on spatial ordinal patterns (SOPs) and return a SOPTestResult with the test statistic, the asymptotic critical value, the p-value, and the reject decision.
data: data matrix (spatial field).d1::Int: row delay.d2::Int: column delay.chart_choice: one ofTauHat(),KappaHat(),TauTilde(),KappaTilde()(two-sided test), orShannon(),ShannonExtropy(),DistanceToWhiteNoise()(one-sided, upper-tail test with rescaled statistic). ForShannonandShannonExtropy, the logarithm base must be larger than 1. The statistic does not depend on it.refinement:OrdinaryType()for the classical SOP classification, or one ofRotationType(),DirectionType(),DiagonalType()(only for the entropy-type charts).alpha=0.05: significance level.add_noise::Bool=false: add uniform noise to the data to break ties (recommended for discrete-valued data).