Learn R Programming

DendSer (version 1.0.3)

cost: Cost functions for DendSer Each of these functions evaluates the cost of an ordering.

Description

Cost functions for DendSer Each of these functions evaluates the cost of an ordering.

Usage

costLS(sw, o, target = seq_along(sw), ...)

costARc(sw, o, target = nrow(sw) - 1, ...)

costED(sw, o, node, se, ...)

costPL(sw, o, ...)

costLPL(sw, o, target = (nrow(sw) - 1):1, ...)

costBAR(sw, o, target = max(2, floor(nrow(sw)/5)), ...)

Value

Result of cost

Arguments

sw

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

o

An ordering vector.

target

Parameter used by cost function.

...

Other args.

node

The node

se

Extra info

Author

Catherine Hurley & Denise Earle