sc_mult: Minkowski scalar multiplication

Description Usage Arguments Details Value Note Author(s) See Also Examples

Description

Given an input dataframe (polygonal fuzzy number) X in the correct format (tested by checking), and a scalar b the fuzzy number bX is calculated using level-wise Minkowski scalar multiplication.

Usage

1
sc_mult(X, b, pic = 0)

Arguments

X

...dataframe, if checking(X)=1 the product bX is returned, if not, NA is returned.

b

...numeric

pic

...numeric, if pic=1 then the product of X by the scalar b is printed. By default pic=0.

Details

See examples

Value

Given correct input data, the function returns the polygonal fuzzy number bX.

Note

In case you find (almost surely existing) bugs or have recommendations for improving the functions comments are welcome to the above mentioned mail addresses.

Author(s)

Wolfgang Trutschnig <wolfgang@trutschnig.net>, Asun Lubiano <lubiano@uniovi.es>

See Also

See Also checking, translator

Examples

 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
#Example 1:
U<-data.frame(x=c(-1,0,1),alpha=c(0,1,0))
E<-sc_mult(U,2)
E

#Example 2:
X<-data.frame(x=c(0,1,1,5),alpha=c(0,1,1,0))
sc_prod<-sc_mult(X,1.5)
sc_prod



#Example 3:
data(XX)
X<-translator(XX[[1]],10)
E<-sc_mult(X,-2,pic=1)
E

SAFD documentation built on July 3, 2019, 5:02 p.m.