get.weight.fn: Weight function examples

Description Usage Arguments Value Examples

View source: R/main_functions.R

Description

Returns possible weight functions that can be used in d2wlasso.

Usage

1
2
3
get.weight.fn(
  weight_fn_type = c("identity", "sqrt", "inverse_abs", "square")[1]
)

Arguments

weight_fn_type

character indicating type of function to return.

Value

a function that can be applied to a scalar.

Examples

1
weight_fn <- get.weight.fn("sqrt") # return f(x)=sqrt(x)

rakheon/d2wlasso documentation built on Feb. 26, 2020, 10:39 p.m.