MultConstSingleRule-class: Class '"MultConstSingleRule"'

Description Objects from the Class Slots Extends Methods See Also Examples

Description

A class for rules multiplying the previous element of numeric sequence by a constant. Objects of this class inherit from SingleRule.

Objects from the Class

Objects can be created by calls of the form new("MultConstSingleRule", ...).

Slots

constantVal:

Object of class "numeric" - a constant that the previous element of the numeric sequence will be multiplied with

previousRule:

Object of class "SingleRule" - a rule that will be executed before MultConstSingleRule (this is an argument used to combine different rules together)

.S3Class:

Object of class "character" - S3 methods apply to this object

Extends

Class "SingleRule", directly.

Methods

calculateSpecific

signature(x = "MultConstSingleRule", y = "numeric", z = "ANY"): ...

See Also

calculate, SingleRule, DoubleRule, createSR, createDR

Examples

1
2
3
4
m<-new("MultConstSingleRule",constantVal=4,previousRule=new("IdenSingleRule")) #or m<-createSR(a1=3,cv1=4,n=0)
print(m)

calculate(m,50)#50*4=200

ruleR documentation built on May 2, 2019, 5:49 p.m.