plot.hinge: Plot the hinge function

Description Usage Arguments Examples

View source: R/hinge.R

Description

This function plots the hinge object created by getHinge.

Usage

1
2
## S3 method for class 'hinge'
plot(x, y = 1, z = NULL, ...)

Arguments

x

The hinge object returned from getHinge.

y

Specifies the class (-1 or 1) to be plotted for the hinge error.

z

If specified, the majorization function with the supporting point z will also be plotted.

...

Other arguments passed to plot method.

Examples

1
2
3
hingefunction <- getHinge()
## plot hinge function value
plot(hingefunction, z = 3)

Example output



SVMMaj documentation built on May 2, 2019, 9:58 a.m.