Expand and calculate a bleed-through matrix from the given matrix around the given reference well.

.mat_calc_bleed(
  mat,
  ref_row,
  ref_col,
  b_noise = 10,
  relative = TRUE,
  .f = mean
)

Arguments

mat

A matrix to expand and calculate relative bleed-through based on a reference well.

ref_row

Reference well row number.

ref_col

Reference well column number.

b_noise

Calculated background noise to fill the bleed-through matrix.

relative

TRUE / FALSE whether to return relative values.

.f

Function to apply to the expanded matrix, defaults to mean.

Value

a matrix, that is a bleed-through matrix calculated from the given matrix.