Learn R Programming

WordOfMouth (version 1.2.0)

computeWoMIntensity: Computes the WoM intensity

Description

Computes the WoM intensity in a given Word-of-Mouth campaign.

Usage

computeWoMIntensity(campaign)

Value

WoM intensity in [0; 1].

Arguments

campaign

Word-of-Mouth campaign as instance of class WoMCampaign.

Examples

Run this code

network <- new("WoMNetwork", size = 1000, avgConnections = 5)
campaign <- new("WoMCampaign", network = network, seedingSize = 10, forwardProbability = 0.2)
intensity <- computeWoMIntensity(campaign)
print(intensity)

Run the code above in your browser using DataLab