penaltyFunctionGenerator: Generate a penalty function

Description Usage Arguments Value Author(s) Examples

View source: R/tracking.R

Description

A function to generate penalty functions to use while linking particles

Usage

1
2
3
4
5
6
penaltyFunctionGenerator(
  epsilon1 = 0.1,
  epsilon2 = 2,
  lambda1 = 1,
  lambda2 = 1
)

Arguments

epsilon1

A numeric value, to be used in the formula. Jitter for allowing angular displacements

epsilon2

A numeric value, to be used in the formula. Jitter for allowing spatial displacements

lambda1

A numeric value. Multiplicative factor for the penalty function

lambda2

A numeric value. Multiplicative factor applied to the angular displacement

Value

A function object, to be used as penalty function

Author(s)

Federico Marini, marinif@uni-mainz.de, 2014

Examples

1
custom.function <- penaltyFunctionGenerator(epsilon1=0.1,epsilon2=6,lambda1=1.5,lambda2=0)

flowcatchR documentation built on Nov. 8, 2020, 5:04 p.m.