bmrm (version 4.1)

lvalue: Return or set lvalue attribute

Description

Return or set lvalue attribute

Usage

lvalue(x, ...)

# S3 method for default lvalue(x, ...)

lvalue(x, ...) <- value

# S3 method for default lvalue(x, ...) <- value

Arguments

x

any R object

...

additional paramters

value

new loss value to set

Value

attr(x,"lvalue")

Details

lvalue attribute is used by loss/risk function to return the loss value of the function at a given point together with the function gradient