Learn R Programming

GeoFIS (version 1.1.1)

Fusion: Class "Fusion"

Description

The main class to perform data fusion
More information is available in the vignette "Data Fusion with GeoFIS"

Arguments

Active bindings

aggregate

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

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

References

gistam20GeoFISdenys20-asciiGeoFIS

See Also

Examples

Run this code
# 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)

Run the code above in your browser using DataLab