new_shapley: Class constructor for class 'shapley'.

View source: R/classes.R

new_shapleyR Documentation

Class constructor for class shapley.

Description

This function creates an object of class shapley that is returned by the shapley function.

Usage

new_shapley(phi = numeric(), mu_tilde = NULL, non_centrality = NULL)

Arguments

phi

A p-dimensional vector (or a n \times p matrix) containing the Shapley values (outlyingness-scores) of a p-dimensional data vector (or a n \times p data matrix).

mu_tilde

Optional. A p-dimensional vector (or a n \times p matrix) containing the alternative reference points based on the regular cells of the original observations.

non_centrality

Optional. The non-centrality parameters for the Chi-Squared distribution, which are given by mahlanobis(mu_tilde, mu, Sigma).

Value

Named list of class shapley, containing the input parameters.


ShapleyOutlier documentation built on Oct. 17, 2024, 5:08 p.m.