residual function

Residual form of the functions

Residual form of the functions

Subtract the theoretical function SH0S_{H_0} or the mean of the functions in the curve set. If the curve_set object contains already residuals Ti(r)T0(r)T_i(r) - T_0(r), use_theo ignored and the same object returned.

residual(curve_set, use_theo = TRUE)

Arguments

  • curve_set: A curve_set object, or an envelope object of spatstat. If an envelope object is given, it must contain the summary functions from the simulated patterns which can be achieved by setting savefuns = TRUE when calling the envelope function.
  • use_theo: Whether to use the theoretical summary function or the mean of the functions in the curve_set.

Returns

A curve set object containing residual summary functions. theo is no longer included.

Details

The mean of the functions in the curve_set is the mean of all functions. If use_theo = TRUE, but the component theo does not exist in the curve_set, the mean of the functions is used silently.

  • Maintainer: Mari Myllymäki
  • License: GPL-3
  • Last published: 2025-03-30