weighted_R1R2 {rgTest} | R Documentation |
get weighted within-sample edge-counts and between-sample edge-counts
Description
get weighted within-sample edge-counts and between-sample edge-counts
Usage
weighted_R1R2(E, n1, wei)
Arguments
E |
an edge matrix representing a similarity graph. Each row represents an edge and records the indices of two ends of an edge in two columns. The indices of observations in sample 1 are from 1 to n1 and indices of observations in sample 2 are from 1+n1 to n1+n2. |
n1 |
number of observations in sample 1. |
wei |
a vector of weights of each edge. |
Value
R1 |
the weighted within-sample edge-count for sample 1. |
R2 |
the weighted within-sample edge-count for sample 2. |
R |
the weighted between-sample edge-count. |
[Package rgTest version 0.1 Index]