computeRoundDemand: Computes the expected demand per round

Description Usage Arguments Value Author(s) See Also Examples

View source: R/Computation.r

Description

Computes the expected demand for a given Word-of-Mouth campaign at a given price and a given round or a given round and all previous rounds

Usage

1
computeRoundDemand(campaign, price, round, previousRounds = TRUE)

Arguments

campaign

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

price

Price as number in [0; 1] where 0 is the minimal and 1 is the maximal price.

round

Round at which or until which the demand per round will be computed.

previousRounds

Should the demand of all previous rounds be returned or not. Default is TRUE.

Value

Expected demand in number of persons. Note that the first value in the demand vector is the number of initial consumers when previousRounds is TRUE. The number of initial consumers is (1-p)*seedingSize.

Author(s)

Michael Scholz michael.scholz@th-deg.de

Thomas Woehner Thomas.Woehner@eah-jena.de

Ralf Peters ralf.peters@wiwi.uni-halle.de

See Also

computeDemand computeProfit computeConsumerSurplus computeOptimalPrice

Examples

1
2
3
4
network <- new("WoMNetwork", size = 1000, avgConnections = 5)
campaign <- new("WoMCampaign", network = network, seedingSize = 10, forwardProbability = 0.2)
demand <- computeRoundDemand(campaign, price = 0.5, round = 3)
print(demand)

WordOfMouth documentation built on April 14, 2020, 6:39 p.m.