fun_patch_attr: Weighted-mean patch attributes

View source: R/utils.R

fun_patch_attrR Documentation

Weighted-mean patch attributes

Description

Weighted-mean patch attributes

Usage

fun_patch_attr(
  x,
  n_branch,
  mean_source,
  sd_source,
  sd_lon,
  m_distance,
  rho = 1,
  v_wa,
  logit = FALSE
)

Arguments

x

Adjacency matrix to be converted

n_branch

Number of branches

mean_source

Mean value of source attribute

sd_source

SD of source attribute

sd_lon

SD of longitudinal change

m_distance

Distance matrix

rho

Longitudinal autocorrelation

v_wa

Vector of watershed area

logit

Logit transformation of mean source attribute


aterui/mcbrnet documentation built on Nov. 14, 2024, 3:14 a.m.