findlambdaC: find values of lambdas in maxent method

Description Usage Arguments Value

Description

find values of lambdas in maxent method

Usage

1
2
findlambdaC(n, m, nu, u, s, l = rep(0, m), tol = 0.001, tole = -1,
  tolz = -1, maxiter = 1000, initlambda = TRUE, check = TRUE)

Arguments

n

number of values

m

number of constraints

nu

number of constraints per value, vector of length n

u

vector of constraints

s

vector of expectations (e.g., row/column sums)

l

initial values of lambdas (not used)

tol

accuracy of lambdas in root finding

tole

accuracy of expectations

tolz

z-normalized accuracy of expectations

maxiter

maximum number of iterations

check

boolean, whether to do sanity checks for inputs

Value

list containing new lambdas, tolerance values (tol, tole, tolz) as well as numer of iterations done.


edahelsinki/cyclesampler documentation built on June 9, 2019, 10:51 a.m.