Learn R Programming

RMallow (version 1.1)

C_lam: Calculate the normalizing coefficient for Mallow's model in a sequence space.

Description

Calculate the normalizing coefficient, as a function of the lambda parameter, and the size of the sequence space.

Usage

C_lam(lambda, dists = NULL, dists.table = NULL)

Arguments

lambda

Spread parameter for Mallows' model.

dists

Vector of all distances from each sequence to 1:N

dists.table

Table version of "dists" above.

Value

Normalizing coefficient of Mallows' model in N! space with lambda = lambda.