Learn R Programming

grt (version 0.1-2)

glcStruct: General Linear Classifier structure

Description

A named list of model parameters that specify a linear decision bound, containing noise, coeffs, and bias.

Usage

glcStruct(noise, coeffs, bias)

Arguments

noise
a positive non-zero numeric.
coeffs
vector. the length of the coeffs should correspond to the number of the model's dimension.
bias
numeric.

Value

  • object of class glcStruct, i.e., a named list containing noise, coeffs, and bias. Returned values are normalized, such that each value are divided by the euclidean norm of the coeffs vector, and the sum of coeffs^2 is 1.

See Also

glc, coef.glcStruct, logLik.glcStruct, old2new_par, new2old_par

Examples

Run this code
params <- glcStruct(noise=10, coeffs=c(1, -1), bias=0)

Run the code above in your browser using DataLab