One row of the shared fit ledger: the polygon's geometry, the columns in fireSenseUtils::spreadFitAdditionalColNamesTxt, polygonID, and, when the fit has an intercept, the covariate centres (fireSenseUtils::spreadFitCovCentreTxt) and, when the fit simulated its members, the in-sample fire sizes (fireSenseUtils::spreadFitInSampleSizesTxt). The run event writes it to the ledger, and a held-out fold saves it beside its held-out result, so fireSense_spreadPredict reads either the same way.

spreadFitLedgerRow(sim, numIterations, objFunVal, params, inSample = NULL)

Arguments

sim

a simList; uses fireSenseUtils::escapeDefinitionOf() (parameters escapeSizeHa and fireCauses), .ELFind, studyArea, sppEquiv, nonForestedLCCGroups, missingLCCgroup, covMinMax_spread, covCentre_spread and climateRef_spread, and the parameters spreadLink, powerLawGamma, powerLawShape, lowerAsymptote, richardsNu and powerLawPcMargin, and powerLawCalibration.

numIterations

integer, the number of DEoptim generations.

objFunVal

numeric, the objective values of the members in params.

params

data.table, one row per member, with hillSlope1 and inflectionPoint1 (see addFixedParsToLedger()).

inSample

NULL (a fold, or a fit without simulateMembers: no column) or inSampleSizes() of the fit.

Value

an sf object with one row.