DendSer (version 1.0.1)

costARc: Cost functions for DendSer

Description

Each of these functions evaluates the cost of an ordering.

Usage

costARc(sw, o, target = nrow(sw) - 1, ...)
costBAR(sw, o, target=max(2,floor(nrow(sw)/5)),...)
costLS(sw, o, target=seq_along(sw),...)
costPL(sw, o, ...)
costLPL(sw, o, target=(nrow(sw)-1):1,...)
costED(sw, o, node,se,...)

Arguments

sw

For cost=costLS, this is a vector of object weights. Otherwise is a symmetric matrix.

o

An ordering vector.

node

The node

se

Extra info

target

Parameter used by cost function.

Other args.

Value

Result of cost