distance: Create a Gram matrix with squared Euclidean distances between...

View source: R/RcppExports.R

distanceR Documentation

Create a Gram matrix with squared Euclidean distances between observations in the input matrix X and the input matrix Y

Description

Create a Gram matrix with squared Euclidean distances between observations in the input matrix X and the input matrix Y

Arguments

X

A numeric input matrix

Y

A numeric input matrix with the same variables as X

intercept

Logical indicating whether an intercept should be added to the estimation procedure. In this case, the first column is an all-zero column (which will be transformed into an all-ones column in the kernel).


densityratio documentation built on June 8, 2025, 11:17 a.m.