Result of Spatex.PointPats.g_test/2 and its siblings: an observed distance function with a
seeded Monte Carlo test against complete spatial randomness (pointpats.distance_statistics
*_test).
function-:f,:g,:j,:kor:l.support- the distances at which the statistic is evaluated.statistic- the observed values atsupport.pvalue- per-support pseudo p-valuemin(p, 1 - p)withp = (count + 1) / (permutations + 1),countbeing the number of simulated values at least as large as the observed one, as in pointpats, so it is at most 0.5 and can be0.0(for example at distance 0, where every statistic is 0).:nanwhenpermutationsis 0.simulations-permutationscurves (lists aligned withsupport) whenkeep_simulations: true, a{permutations, length(support)}Nx.Tensorof type{:f, 64}withkeep_simulations: :tensor, elsenil.envelope_low,envelope_high- per-support minimum and maximum over the simulations (a Spatex convenience, not part of pointpats);:nanwithout simulations.
Non-finite floats are the atoms :nan, :infinity and :neg_infinity.
Summary
Types
@type t() :: %Spatex.PointPats.DistanceTest{ envelope_high: [value()], envelope_low: [value()], function: :f | :g | :j | :k | :l, permutations: non_neg_integer(), pvalue: [value()], seed: non_neg_integer(), simulations: [[value()]] | Nx.Tensor.t() | nil, statistic: [value()], support: [float()] }
@type value() :: float() | :nan | :infinity | :neg_infinity