Edge: Edge generation

View source: R/graph.R

EdgeR Documentation

Edge generation

Description

Edge creation for gfpop-R-Package graph

Usage

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". Default type is "null", the transition to stay on the same segment.

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

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

Edge(0, 1, "abs", penalty = 2, gap = 1)

Edge(0, 0, "null", penalty = 0, K = 2, a = 1)

Edge("Dw", "Dw", type = "null", decay = 0.997)

gfpop documentation built on April 1, 2023, 12:22 a.m.