Learn R Programming

⚠️There's a newer version (2.2.0) of this package.Take me there.

lfl

The lfl package provides various algorithms related to linguistic fuzzy logic: mining for linguistic fuzzy association rules, composition of fuzzy relations, performing perception-based logical deduction (PbLD), and forecasting time-series using fuzzy rule-based ensemble (FRBE).

Installation

To install the stable version from CRAN, simply issue the following command within your R session:

install.packages("lfl")

If you want to install the development version instead, type:

install.packages("devtools")
devtools::install_github("beerda/lfl")

Copy Link

Version

Install

install.packages('lfl')

Monthly Downloads

671

Version

2.0

License

GPL-3

Maintainer

Michal Burda

Last Published

February 11th, 2020

Functions in lfl (2.0)

ctx

Context for linguistic expressions
plot.fsets

lingexpr

Creator of functions representing linguistic expressions
perceive

From a set of rules, remove each rule for which another rule exists that is more specific.
smape

Compute Symmetric Mean Absolute Percentage Error (SMAPE)
aggregateConsequents

Aggregation of fired consequents into a resulting fuzzy set
c.farules

Take a sequence of instances of S3 class farules() and combine them into a single object. An error is thrown if some argument does not inherit from the farules() class.
evalfrbe

Evaluate the performance of the FRBE forecast
sobocinski

Modify algebra's way of computing with NA values.
algebra

Algebra for Fuzzy Sets
as.data.frame.fsets

Convert an object of fsets class into a matrix or data frame This function converts an instance of S3 class fsets into a matrix or a data frame. The vars() and specs() attributes of the original object are deleted.
fire

Evaluate rules and obtain truth-degrees
farules

Create an instance of S3 class farules which represents a set of fuzzy association rules and their statistical characteristics.
is.farules

Test whether x inherits from the S3 farules class.
fcut

Transform data into a fsets S3 class using shapes derived from triangles or raised cosines
mase

Compute Mean Absolute Scaled Error (MASE)
rmse

Compute Root Mean Squared Error (RMSE)
minmax

Creating linguistic context directly from values
reduce

Reduce the size of rule base
searchrules

Searching for fuzzy association rules
slices

Return vector of values from given interval
cbind.fsets

Combine several 'fsets' objects into a single one
print.fsets

antecedents

Extract antecedent-part (left-hand side) of rules in a list
compose

Composition of Fuzzy Relations
as.data.frame.farules

Convert the instance of the farules() S3 class into a data frame. Empty farules() object is converted into an empty data.frame().
fsets

S3 class representing a set of fuzzy sets on the fixed universe
is.frbe

Test whether x is a valid object of the S3 frbe class
hedge

Linguistic hedges
horizon

Create a function that computes linguistic horizons
frbe

Fuzzy Rule-Based Ensemble (FRBE) of time-series forecasts
is.fsets

Test whether x is a valid object of the S3 fsets class
rbcoverage

Compute rule base coverage of data
print.farules

Print an instance of the farules() S3 class in a human readable form.
triangle

Deprecated functions to compute membership degrees of numeric fuzzy sets
is.specific

Determine whether the first set x of predicates is more specific (or equal) than y with respect to vars and specs.
print.frbe

lcut

Transform data into a fsets S3 class of linguistic fuzzy attributes
triangular

Factories for functions that convert numeric data into membership degrees of fuzzy sets
pbld

Perform a Perception-based Logical Deduction (PbLD) with given rule-base on given dataset
mult

Callback-based Multiplication of Matrices
lcut3

Deprecated functions for transformation of data into a fsets S3 class of linguistic fuzzy attributes
consequents

Extract consequent-part (right-hand side) of rules in a list
defaultHedgeParams

A list of the parameters that define the shape of the hedges.
defuzz

Convert fuzzy set into a crisp numeric value
lfl

lfl.