dGLM: Class for NHPP-based software reliability model with...

dGLMR Documentation

Class for NHPP-based software reliability model with d-metrics

Description

Class for NHPP-based software reliability model with d-metrics

Format

R6Class object.

Value

Object of R6Class with methods for NHPP-based software reliability model with d-metrics.

Fields

name

A character string for the name of model.

params

A numeric vector for the model parameters.

df

An integer for the degrees of freedom of the model.

data

Data to esimate parameters.

Methods

print()

This method prints model parameters.

omega()

This method returns the number of total faults.

coefficients()

This method returns a vector for the coefficients.

mvf(t, data = NULL)

This method returns the mean value function at time t. The d-metrics is given from data. If data is NULL, the d-metrics for the estimation is used.

dmvf(t, data = NULL)

This method returns the intensity function at time t. The d-metrics is given from data. If data is NULL, the d-metrics for the estimation is used.

residual(t, data = NULL)

This method returns the expected residual number of faults at time t. The d-metrics is given from data. If data is NULL, the d-metrics for the estimation is used.

ffp(t, data = NULL)

This method returns the fault-free probability at time t. The d-metrics is given from data. If data is NULL, the d-metrics for the estimation is used.

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
dGLM$print(digits = max(3, getOption("digits") - 3), ...)

Method omega()

Usage
dGLM$omega()

Method coefficients()

Usage
dGLM$coefficients()

Method mvf()

Usage
dGLM$mvf(t, data = NULL)

Method dmvf()

Usage
dGLM$dmvf(t, data = NULL)

Method residual()

Usage
dGLM$residual(t, data = NULL)

Method ffp()

Usage
dGLM$ffp(t, data = NULL)

Method new()

Usage
dGLM$new(omega = 1, coefficients = c(1))

Method init_params()

Usage
dGLM$init_params(data)

Method set_params()

Usage
dGLM$set_params(params)

Method set_omega()

Usage
dGLM$set_omega(params, x)

Method set_data()

Usage
dGLM$set_data(data)

Method em()

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

Method llf()

Usage
dGLM$llf(data, fault, omega, mu)

Method comp_error()

Usage
dGLM$comp_error(res0, res1)

Method clone()

The objects of this class are cloneable with this method.

Usage
dGLM$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super class

msrat::dGLM -> dGLM.logit

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
dGLM.logit$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super class

msrat::dGLM -> dGLM.probit

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
dGLM.probit$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super class

msrat::dGLM -> dGLM.cloglog

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
dGLM.cloglog$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super class

msrat::dGLM -> dGLM.penalized

Methods

Public methods

Inherited methods

Method set_penalized()

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

Method em()

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

Method llf()

Usage
dGLM.penalized$llf(data, fault, omega, mu)

Method clone()

The objects of this class are cloneable with this method.

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

Whether to make a deep clone.

Super classes

msrat::dGLM -> msrat::dGLM.penalized -> dGLM.penalized.logit

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
dGLM.penalized.logit$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super classes

msrat::dGLM -> msrat::dGLM.penalized -> dGLM.penalized.probit

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
dGLM.penalized.probit$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

Super classes

msrat::dGLM -> msrat::dGLM.penalized -> dGLM.penalized.cloglog

Methods

Public methods

Inherited methods

Method clone()

The objects of this class are cloneable with this method.

Usage
dGLM.penalized.cloglog$clone(deep = FALSE)
Arguments
deep

Whether to make a deep clone.

See Also

fit.srm.logit


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