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.1

License

GPL-3

Maintainer

Michal Burda

Last Published

May 19th, 2020

Functions in lfl (2.0.1)

antecedents

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

Compute Mean Absolute Scaled Error (MASE)
minmax

Creating linguistic context directly from values
print.farules

Print an instance of the farules() S3 class in a human readable form.
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.
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().
print.frbe

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.
horizon

Create a function that computes linguistic horizons
hedge

Linguistic hedges
evalfrbe

Evaluate the performance of the FRBE forecast
aggregateConsequents

Aggregation of fired consequents into a resulting fuzzy set
algebra

Algebra for Fuzzy Sets
farules

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

Context for linguistic expressions
consequents

Extract consequent-part (right-hand side) of rules in a list
is.fsets

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

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

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

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

lcut

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

Convert fuzzy set into a crisp numeric value
defaultHedgeParams

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

Evaluate rules and obtain truth-degrees
triangle

Deprecated functions to compute membership degrees of numeric fuzzy sets
triangular

Factories for functions that convert numeric data into membership degrees of fuzzy sets
cbind.fsets

Combine several 'fsets' objects into a single one
mult

Callback-based Multiplication of Matrices
is.frbe

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

Deprecated functions for transformation of data into a fsets S3 class of linguistic fuzzy attributes
is.farules

Test whether x inherits from the S3 farules class.
fsets

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

Composition of Fuzzy Relations
lfl

lfl - Linguistic Fuzzy Logic
pbld

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

Compute Symmetric Mean Absolute Percentage Error (SMAPE)
rmse

Compute Root Mean Squared Error (RMSE)
print.fsets

lingexpr

Creator of functions representing linguistic expressions
sobocinski

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

Reduce the size of rule base
frbe

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

Compute rule base coverage of data
searchrules

Searching for fuzzy association rules
slices

Return vector of values from given interval