Learn R Programming

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). The package also contains basic fuzzy-related algebraic functions capable of handling missing values in different styles (Bochvar, Sobocinski, Kleene etc.), computation of Sugeno integrals and fuzzy transform.

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

725

Version

2.2.0

License

GPL-3

Maintainer

Last Published

September 8th, 2022

Functions in lfl (2.2.0)

equidist

Return equidistant breaks
evalfrbe

Evaluate the performance of the FRBE forecast
frbe

Fuzzy Rule-Based Ensemble (FRBE) of time-series forecasts
equifreq

Return equifrequent breaks
defuzz

Convert fuzzy set into a crisp numeric value
fcut

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

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

Context for linguistic expressions
farules

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

Evaluate rules and obtain truth-degrees
is.farules

Test whether x inherits from the S3 farules class.
is.specific

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

Linguistic hedges
fsets

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

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

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

Inverse of the fuzzy transform
is.frbe

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

Create a function that computes linguistic horizons
ft

Fuzzy transform
lingexpr

Creator of functions representing linguistic expressions
minmax

Creating linguistic context directly from values
mase

Compute Mean Absolute Scaled Error (MASE)
pbld

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

Print an instance of the algebra() S3 class in a human readable form.
plot.fsets

Plot membership degrees stored in the instance of the S3 class fsets() as a line diagram.
lfl

lfl - Linguistic Fuzzy Logic
mult

Callback-based Multiplication of Matrices
rbcoverage

Compute rule base coverage of data
reduce

Reduce the size of rule base
print.frbe

Print an instance of the frbe() class
slices

Return vector of values from given interval
perceive

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

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

Compute Root Mean Squared Error (RMSE)
searchrules

Searching for fuzzy association rules
smape

Compute Symmetric Mean Absolute Percentage Error (SMAPE)
triangle

Deprecated functions to compute membership degrees of numeric fuzzy sets
print.fsets

Print an instance of the fsets() class
print.ctx3

Print the linguistic context
lcut

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

A quantifier is a function that computes a fuzzy truth value of a claim about the quantity. This function creates the <1>-type quantifier. (See the examples below on how to use it as a quantifier of the <1,1> type.)
sugeno

A factory function for creation of sugeno-integrals.
triangular

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

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

Aggregation of fired consequents into a resulting fuzzy set
antecedents

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

Composition of Fuzzy Relations
consequents

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

Algebra for Fuzzy Sets
as.data.frame.farules

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.
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.
cbind.fsets

Combine several 'fsets' objects into a single one