Learn R Programming

FuzzyNumbers (version 0.4-7)

as.character: Get Basic Information on a Fuzzy Number in a String

Description

This method is especially useful if you would like to generate LaTeX equations defining a fuzzy numbers.

Usage

# S4 method for FuzzyNumber
as.character(x, toLaTeX=FALSE, varnameLaTeX="A")

# S4 method for TrapezoidalFuzzyNumber as.character(x, toLaTeX=FALSE, varnameLaTeX="A")

# S4 method for PiecewiseLinearFuzzyNumber as.character(x, toLaTeX=FALSE, varnameLaTeX="A")

# S4 method for PowerFuzzyNumber as.character(x, toLaTeX=FALSE, varnameLaTeX="A")

Arguments

x

a fuzzy number

toLaTeX

logical; should LaTeX code be output?

varnameLaTeX

character; variable name to be included in equations

Value

Returns a character vector.

Details

Consider calling the cat function on the resulting string.

Thanks to Jan Caha for suggesting the toLaTeX arg.

See Also

Other FuzzyNumber-method: Arithmetic, Extract, FuzzyNumber-class, FuzzyNumber, alphaInterval(), alphacut(), ambiguity(), as.FuzzyNumber(), as.PiecewiseLinearFuzzyNumber(), as.PowerFuzzyNumber(), as.TrapezoidalFuzzyNumber(), core(), distance(), evaluate(), expectedInterval(), expectedValue(), integrateAlpha(), piecewiseLinearApproximation(), plot(), show(), supp(), trapezoidalApproximation(), value(), weightedExpectedValue(), width()

Other PiecewiseLinearFuzzyNumber-method: Arithmetic, Extract, PiecewiseLinearFuzzyNumber-class, PiecewiseLinearFuzzyNumber, ^,PiecewiseLinearFuzzyNumber,numeric-method, alphaInterval(), arctan2(), as.PiecewiseLinearFuzzyNumber(), as.PowerFuzzyNumber(), as.TrapezoidalFuzzyNumber(), expectedInterval(), fapply(), maximum(), minimum(), necessityExceedance(), necessityStrictExceedance(), necessityStrictUndervaluation(), necessityUndervaluation(), plot(), possibilityExceedance(), possibilityStrictExceedance(), possibilityStrictUndervaluation(), possibilityUndervaluation()

Other PowerFuzzyNumber-method: Extract, PowerFuzzyNumber-class, PowerFuzzyNumber, alphaInterval(), as.PowerFuzzyNumber(), as.TrapezoidalFuzzyNumber(), expectedInterval()

Other conversion: as.FuzzyNumber(), as.PiecewiseLinearFuzzyNumber(), as.PowerFuzzyNumber(), as.TrapezoidalFuzzyNumber()