Edge: Edge generation

Description Usage Arguments Value Examples

View source: R/graph.R

Description

Edge creation for graph

Usage

1
2
Edge(state1, state2, type = "null", decay = 1, gap = 0,
  penalty = 0, K = Inf, a = 0)

Arguments

state1

a string defining the starting state of the edge

state2

a string defining the ending state of the edge

type

a string equal to "null", "std", "up", "down" or "abs"

decay

a nonnegative number to give the strength of the exponential decay into the segment

gap

a nonnegative number to constrain the size of the gap in the change of state

penalty

a nonnegative number. The penality associated to this state transition

K

a positive number. Threshold for the Biweight robust loss

a

a positive number. Slope for the Huber robust loss

Value

a one-row dataframe with 9 variables

Examples

1
Edge("Dw", "Up", "up", gap = 1, penalty = 10, K = 3)

gfpop documentation built on Feb. 17, 2021, 5:08 p.m.

Related to Edge in gfpop...