Wasserstein Metric

Share:

Description

Wasserstein Metric

Usage

1
wasserMetric.v(cases, control, paranum = 101, q = 2)

Arguments

cases

name of case group data (matrix sample * feature).

control

names of control group data (matrix sample * feature).

paranum

the number of quatile discretization + 1. Default is discretized by 1%.

q

power of Wasserstein metric. Default is q = 2.

Value

Wasserstein metric

Author(s)

Yusuke Matsui & Teppei Shimamura

Examples

1
2
3
cases <- rbeta(30,1,5)
control <- rbeta(30,2,5)
wasserMetric.v(cases,control)