Spread probability for the pixels of one ELF

spreadProbOneELF(
  covs,
  params,
  covMinMax,
  yr,
  maxFireSpread,
  lowerSpreadProb,
  covCentre = NULL
)

Arguments

covs

data.table of this ELF's pixels: pixelID and covariates (as fireSense_dataPrepPredict makes them; fuel biomass logged). It can hold more than the fit used (every ELF's covariates, or a term the spread formula has but the fit does not); only the covariates named in params are used.

params

one-row data.frame: the ELF's parameter set for this replicate (paramSetForRep()).

covMinMax

the ELF's covMinMax_spread (ledgerCovMinMax()): the ranges the fit rescaled its covariates with. Every fitted covariate must be a column of it, or it is left unscaled.

yr, maxFireSpread, lowerSpreadProb

as for fireSenseUtils::spreadProbFromIntegerCovs() and fireSenseUtils::logisticAll().

covCentre

the ELF's covCentre_spread (ledgerCovCentre()): the covariate means the fit subtracted from the rescaled covariates; NULL (a fit without an intercept, or an older ledger row) centres nothing. A parameter set with fireSenseUtils::spreadInterceptTxt has an intercept, added as a column of 1s after the covariates are rescaled and centred, as in the fit.

Value

data.table with pixelID and spreadProb, from the one parameter set in params.