Fusion function

Class "Fusion"

Class "Fusion"

The main class to perform data fusion

More information is available in the vignette "Data Fusion with GeoFIS" class

Examples

# more information about this example in the vignette "Data Fusion with GeoFIS" # section "Learning illustration" library(GeoFIS) data(fusion_cars) fusion <- NewFusion(fusion_cars) a <- NewFusionInput("a", NewMfTrapezoidalInf(4, 20), "A") v <- NewFusionInput("v", NewMfTrapezoidalSup(100, 500), "V") s <- NewFusionInput("s", NewMfTrapezoidalSup(120, 220), "S") c <- NewFusionInput("c", NewMfTrapezoidalInf(6, 16), "C") owa_aggreg <- NewFusionAggreg("score", NewAggregOwa(c(1, 0, 0, 0)), a, v, s, c) fusion$aggregate <- owa_aggreg fusion$perform() score <- fusion$output()["score"] print(score)

References

\insertRef gistam20GeoFIS

\insertRef denys20-asciiGeoFIS

See Also

NewFusion

Data Fusion documentation

Active bindings

  • aggregate: data.tree::Node object, or a list of data.tree::Node , The node(s) to aggregate

Methods

Public methods

Method new()

The constructor to build an object of class Fusion .

Usage

Fusion$new(source)

Arguments

  • source: data.frame or sp::Spatial *DataFrame object of sp::sp package

     Keep only numeric attributes
    

Method perform()

Perform the data fusion

Usage

Fusion$perform()

Method output()

Get the output aggregated data (same object type as data source)

Usage

Fusion$output()

Returns

data.frame or sp::Spatial *DataFrame object