RcppGmd: Gini Mean Difference Statistics

View source: R/gmd.R

RcppGmdR Documentation

Gini Mean Difference Statistics

Description

Computes Gini mean difference of x, where alpha is an exponent on the Euclidean distance and return the Gini mean difference. The default value for alpha is 1.

Usage

  RcppGmd(x, alpha)

Arguments

x

data

alpha

exponent on Euclidean distance, in (0,2]

Details

RcppGmd compute Gini mean difference statistics for data. It is a Rcpp version of gmd.

Value

RcppGmd returns the sample Gini mean difference of x.

See Also

RcppKgCov RcppgCor gCov gCor

Examples

  n=1000
  x<-runif(n)
  RcppGmd(x, alpha=1)

GiniDistance documentation built on Sept. 2, 2022, 9:06 a.m.