RcppGmd: Gini Mean Difference Statistics

Description Usage Arguments Details Value See Also Examples

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

1
  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

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

GiniDistance documentation built on June 28, 2019, 5:03 p.m.