ProjectSketch: Project Geometric Sketches

View source: R/utils.R

ProjectSketchR Documentation

Project Geometric Sketches

Description

Project weights learned from geometric sketches onto other data points based on nearest neighbors.

Usage

ProjectSketch(data, data_query, weights_data, k)

Arguments

data

An M x d matrix or data.frame with M rows of data points and d columns of features.

data_query

An N x d matrix or data.frame with N rows of queried data points and d columns of features.

weights_data

A vector of weights for each data point with total length of M.

k

Number of nearest neighbors. See details from nn2.

Value

Returns the weight matrix of the queried data.


stevexniu/FuseNet documentation built on May 16, 2022, 12:23 p.m.