findReflection: Find reflection

View source: R/adaptivegpca-package.R

findReflectionR Documentation

Find reflection

Description

Find a reflection of one data frame so that it most closely matches another.

Usage

findReflection(df1, df2)

Arguments

df1

The base data frame.

df2

The data frame that will be reflected across either the x-axis or the y-axis (or both or neither) so that the points in it most closely match df1.

Value

A vector of length ncol(df1): Multiplying the first column of df2 by the first element and multiplying the second column of df2 by the second element and so on gives the optimal reflection.


adaptiveGPCA documentation built on Dec. 8, 2022, 5:12 p.m.