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

695

Version

2.1.0

License

GPL-3

Maintainer

Michal Burda

Last Published

October 14th, 2020

Functions in lfl (2.1.0)

antecedents

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

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

Composition of Fuzzy Relations
algebra

Algebra for Fuzzy Sets
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.
aggregateConsequents

Aggregation of fired consequents into a resulting fuzzy set
cbind.fsets

Combine several 'fsets' objects into a single one
defaultHedgeParams

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

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

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

Context for linguistic expressions
lfl

lfl - Linguistic Fuzzy Logic
lingexpr

Creator of functions representing linguistic expressions
is.frbe

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

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

print.farules

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

Convert fuzzy set into a crisp numeric value
hedge

Linguistic hedges
fsets

S3 class representing a set of fuzzy sets on the fixed universe
evalfrbe

Evaluate the performance of the FRBE forecast
horizon

Create a function that computes linguistic horizons
lcut

Transform data into a fsets S3 class of linguistic fuzzy attributes
plot.fsets

is.specific

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

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

Factories for functions that convert numeric data into membership degrees of fuzzy sets
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().
smape

Compute Symmetric Mean Absolute Percentage Error (SMAPE)
fire

Evaluate rules and obtain truth-degrees
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.
slices

Return vector of values from given interval
frbe

Fuzzy Rule-Based Ensemble (FRBE) of time-series forecasts
print.ctx3

Print the linguistic context
print.algebra

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

Test whether x inherits from the S3 farules class.
sugeno

A factory function for creation of sugeno-integrals.
triangle

Deprecated functions to compute membership degrees of numeric fuzzy sets
pbld

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

Reduce the size of rule base
rbcoverage

Compute rule base coverage of data
mult

Callback-based Multiplication of Matrices
rmse

Compute Root Mean Squared Error (RMSE)
minmax

Creating linguistic context directly from values
mase

Compute Mean Absolute Scaled Error (MASE)
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.)
print.fsets

searchrules

Searching for fuzzy association rules
sobocinski

Modify algebra's way of computing with NA values.