RcppGmd {GiniDistance}R 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)

[Package GiniDistance version 0.1.1 Index]