CS.obj: Used in 'solnp()' as the objective function to be minimized...

CS.objR Documentation

Used in solnp() as the objective function to be minimized when chi-square distance measure is chosen. Unlike AIT.obj() and KL.obj(), does not require modifying zeros.

Description

Used in solnp() as the objective function to be minimized when chi-square distance measure is chosen. Unlike AIT.obj() and KL.obj(), does not require modifying zeros.

Usage

CS.obj(alpha, predator, prey.quantiles, gamma)

Arguments

alpha

vector over which minimization takes place.

predator

fatty acid signature of predator.

prey.quantiles

matrix of fatty acid signatures of prey. Each row contains an individual prey signature from a different species.

gamma

power transform exponent (see chisq.dist()).


justinkamerman/QFASA documentation built on Nov. 17, 2023, 12:33 p.m.