LearnWamWeights: Learn the WAM weights

View source: R/learning.R

LearnWamWeightsR Documentation

Learn the WAM weights

Description

Learn the WAM weights using a non-negative least-square optimization method with the constraint that the sum of weights must be equal to 1.
More information is available in the vignette "Data Fusion with GeoFIS", section "Learning illustration".

Usage

LearnWamWeights(data, target, digits = 3)

Arguments

data

data.frame or numeric matrix, The input data (all columns must be in range [0, 1])

target

numeric vector, The target data (must be in range [0, 1])

digits

integer value, The number of digits to which weights are to be rounded (default is 3)

Value

numeric vector, The WAM weights


GeoFIS documentation built on Oct. 5, 2022, 5:06 p.m.