Description Usage Arguments Details Value See Also

View source: R/plot_diffnet2.r

Computes weighted variance

1 2 3 | ```
weighted_var(x, w)
wvar(x, w)
``` |

`x` |
A numeric vector of length |

`w` |
A numeric vector of length |

`weighted_variance`

implements weighted variance computation
in the following form:

*
sum[w(i)'(x(i) - w.mean(x))^2/(1-n)]
*

where *w(i)' = w(i)/sum(w)*, and
*w.mean(x)=sum[w(i)'*x(i)]*.

Numeric scalar with the weighted variance.

This function is used in `diffmap`

.

srdyal/diffusiontest documentation built on July 31, 2018, 2:14 a.m.

Embedding an R snippet on your website

Add the following code to your website.

For more information on customizing the embed code, read Embedding Snippets.