R/AlphaMin.R

Defines functions AlphaMin

Documented in AlphaMin

AlphaMin <-
function (E, C, Names = NULL)
{
N <- length(C)
Nc <- NULL
 for (i in 1:N) {
 R <- min(C[1],E/N)
Nc <- rbind(Nc, R)
}
print(Nc)
NE <- E - sum(Nc)
CP <- C - Nc
print(NE)
print(CP)
NC <- Proportional(NE, CP)$Results
print(NC)
 print(CP)
R <- NC + Nc
Output <- list(Results = R, Claims = C, Method = "Alpha-min Rule",
                        Short = "\u03b1-min", E = E, Names = Names)
class(Output) <- "ClaimsRule"
 return(Output)
}

Try the GameTheory package in your browser

Any scripts or data that you put into this service are public.

GameTheory documentation built on July 4, 2017, 5:02 p.m.