norm_sq_phi: Represent ||x'(phi)_i-x'(phi)_j||_2^2 as a quadratic function...

View source: R/trunc_sets.R

norm_sq_phiR Documentation

Represent ||x'(phi)_i-x'(phi)_j||_2^2 as a quadratic function in phi —-

Description

Represent ||x'(phi)_i-x'(phi)_j||_2^2 as a quadratic function in phi —-

Usage

norm_sq_phi(X, v, XTv, XTv_norm, dir_XTv, v_norm, i, j)

Arguments

v,

the vector

XTv,

vector p by 1

XTv_norm,

norm of XTv

dir_XTv,

vector p by 1 := XTv/XTv_norm

v_norm,

2-norm of vector v

i,

first index

j,

second index

Value

parameters: a, b, c the coefficients of the quadratic equation such that (ax^2 + bx + c <= 0)


yiqunchen/KmeansInference documentation built on June 4, 2022, 1:20 p.m.