Learn R Programming

fuzzyreg (version 0.6.2)

prodSfuzzy: Product of a Scalar and a Triangular Fuzzy Number

Description

Calculates product of a real number scalar and a triangular fuzzy number defined as a central value, left and right spread.

Usage

prodSfuzzy(x, y)

Value

Returns a numeric vector, representing a triangular fuzzy number.

Arguments

x

numeric vector of length one.

y

a numeric vector of length three, specifying a triangular fuzzy number as its central value, left and right spread.

Details

Note that if x < 0 the left and right spread will be reversed.

Examples

Run this code
  x <- 2
  y <- c(2, 0.2, 0.2)
  prodSfuzzy(x = x, y = y)
  x <- -2
  prodSfuzzy(x = x, y = y)

Run the code above in your browser using DataLab