huber_cond: Conditional for Huber Loss function

Description Usage Arguments Value Examples

View source: R/loss.R

Description

Determines which summation will be used within the Huber Loss function. Meant for use with sapply and huber_loss.

Usage

1
huber_cond(i, delta)

Arguments

i

ith value of a one dimensional vector

delta

const parameter for determining conditional

Value

boolean vector for conditional statement

Examples

1
huber_cond(0, 0.01) == TRUE

tbonza/supml documentation built on May 17, 2019, 3:14 a.m.