cvm_stat_M: Computing the Cramér - von Mises distance between two samples

View source: R/cvm_stat_M.R

cvm_stat_MR Documentation

Computing the Cramér - von Mises distance between two samples

Description

This function Computing the Cramér - von Mises distance between two samples.

Usage

cvm_stat_M(vec1, vec2, power)

Arguments

vec1

(n x 1) vector: first sample.

vec2

(n x 1) vector: second sample.

power

power of the integrand. Equal to 2 when using the L2 distance

Details

This function computes the Cramér - von Mises distance between two samples. See Drovandi and Frazier (2022, p. 7).

Value

out scalar: Cramér - von Mises distance between the two samples

References

\insertRef

dro22FitDynMix

Examples

out = cvm_stat_M(runif(100),rnorm(100),2)

FitDynMix documentation built on June 10, 2025, 9:12 a.m.