visitation {fsr}R Documentation

Visitation: An example of FSI model

Description

visitation() provides an example, without rules, of a fuzzy spatial inference (FSI) model.

Usage

visitation()

Details

The visitation() function provides a hypothetical FSI model that estimates the visiting experience based on prices and overall ratings of accommodations as well as sanitary conditions of restaurants. The output of such a model infers a value between 0 and 100 that indicates how attractive it is to visit a specific location. For this, the experience can be classified as awful, average, and great.

The linguistic variables and their linguistic values of this FSI model are listed below:

Note that this is just a small running example, containing a small set of points to represent the locations of accommodations and restaurants.

The usage of FSI models is subdivided into a preparation phase and an evaluation phase. The preparation phase is responsible for instantiating a new FSI model with the elements of the data source component of FIFUS. For this, the fsr package provides the following functions: fsi_create(), fsi_add_fsa(), and fsi_add_cs(). These functions are employed by visitation() so that users can add their own fuzzy set rules (by using fsi_add_rules()) and perform the evaluation phase (by using the functions fsi_eval() and/or fsi_qw_eval()).

In this sense, visitation() performs the following internal actions to return an FSI model:

  1. specify the linguistic variables and their corresponding linguistic values, which are in turn represented by membership functions. These items are specified according to the context of the running example.

  2. define small point datasets that represent each linguistic variable. Such datasets are tibble objects.

  3. build spatial plateau objects by using spa_creator() on the datasets. As a result, we get spatial plateau objects that represent each linguistic value.

  4. create an FSI model with fsi_create() function.

  5. add fuzzy spatial antecedents with fsi_add_fsa(). Recall that the antecedents are spatial plateau objects previously built.

  6. define the linguistic variable and its linguistic values with membership functions for the consequent.

  7. add the consequent to the FSI model by using fsi_add_cs().

Value

An FSI model without fuzzy rules set.

References

This function is based on the running example introduced in:

Underlying concepts and formal definitions of FIFUS are discussed in:

Examples


fsi <- visitation()


[Package fsr version 2.0.1 Index]