Fusion | R Documentation |
The main class to perform data fusion
More information is available in the vignette "Data Fusion with GeoFIS"
aggregate
data.tree::Node object, or a list of data.tree::Node, The node(s) to aggregate
new()
The constructor to build an object of class Fusion.
Fusion$new(source)
source
data.frame or sp::Spatial*DataFrame object of sp::sp package
Keep only numeric attributes
perform()
Perform the data fusion
Fusion$perform()
output()
Get the output aggregated data (same object type as data source)
Fusion$output()
data.frame or sp::Spatial*DataFrame object
gistam20GeoFIS
\insertRefdenys20-asciiGeoFIS
NewFusion
# 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)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.