var2_nvd: Fréchet Variance of Network-Valued Data from Inter-Point...

View source: R/nvd-class.R

var2_nvdR Documentation

Fréchet Variance of Network-Valued Data from Inter-Point Distances

Description

This function computes the Fréchet variance using exclusively inter-point distances. As such, it can accommodate any pair of representation and distance.

Usage

var2_nvd(x, representation = "adjacency", distance = "frobenius")

Arguments

x

An nvd object listing a sample of networks.

representation

A string specifying the graph representation to be used. Choices are adjacency, laplacian, modularity, graphon. Default is adjacency.

distance

A string specifying the distance to be used. Possible choices are: hamming, frobenius, spectral or root-euclidean. Default is frobenius.

Value

A positive scalar value evaluating the variance based on inter-point distances.

Examples

gnp_params <- list(p = 1/3)
x <- nvd(model = "gnp", n = 10L, model_params = gnp_params)
var2_nvd(x = x, representation = "graphon", distance = "frobenius")

astamm/nevada documentation built on Sept. 9, 2023, 1:37 a.m.