sGLM: Class for software reliability model with s-metrics

sGLMR Documentation

Class for software reliability model with s-metrics

Description

Class for software reliability model with s-metrics

Format

R6Class object.

Value

Object of R6Class with methods for software reliability model with s-metrics.

Fields

srms

A list for srms.

coef

A numeric vector for the regression coefficients.

faults

A numeric vector of the number of total faults.

df

An integer for the degrees of freedom of the model (total).

data

Data to esimate parameters.

Methods

print()

This method prints model parameters.

omega()

This method returns a vector of the number of total faults.

coefficients()

This method returns a vector of the coefficients for s-metrics.

init_params(data)

This method changes the model parameters based on a given data. This is used to set the initial value for the fitting algorithm.

set_params(params)

This method sets the model parameters.

set_data(data)

This method sets data.

em(params, data)

This method returns a list with an updated parameter vector (param), absolute difference of parameter vector (pdiff), log-likelihood function for a given parameter vector (llf), the number of total faults (total) via EM algorithm for a given data.

llf(data)

This method returns the log-likelihood function for a given data.

Methods

Public methods


Method print()

Usage
sGLM$print(digits = max(3, getOption("digits") - 3), ...)

Method omega()

Usage
sGLM$omega()

Method coefficients()

Usage
sGLM$coefficients()

Method new()

Usage
sGLM$new(srms, names = NULL, coefficients = c())

Method init_params()

Usage
sGLM$init_params(data)

Method set_params()

Usage
sGLM$set_params(params)

Method set_data()

Usage
sGLM$set_data(data)

Method em()

Usage
sGLM$em(params, data, ...)

Method llf()

Usage
sGLM$llf(data)

Method comp_error()

Usage
sGLM$comp_error(res0, res1)

Method clone()

The objects of this class are cloneable with this method.

Usage
sGLM$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super class

msrat::sGLM -> sGLM.log

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
sGLM.log$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super class

msrat::sGLM -> sGLM.identity

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
sGLM.identity$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super class

msrat::sGLM -> sGLM.penalized

Methods

Public methods

Inherited methods

Method set_penalized()

Usage
sGLM.penalized$set_penalized(lambda, alpha = 1)

Method em()

Usage
sGLM.penalized$em(params, data, ...)

Method llf()

Usage
sGLM.penalized$llf(data)

Method comp_error()

Usage
sGLM.penalized$comp_error(res0, res1)

Method clone()

The objects of this class are cloneable with this method.

Usage
sGLM.penalized$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super classes

msrat::sGLM -> msrat::sGLM.penalized -> sGLM.penalized.log

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
sGLM.penalized.log$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super classes

msrat::sGLM -> msrat::sGLM.penalized -> sGLM.penalized.identity

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
sGLM.penalized.identity$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

fit.srm.poireg


okamumu/msrat documentation built on Jan. 17, 2024, 11:55 a.m.