compute_best_hrfs: Compute Best HRFs

View source: R/find_hrf.R

compute_best_hrfsR Documentation

Compute Best HRFs

Description

This is an internal helper that tries to match each column of X_proj (representing data-based PCs) to columns of L_proj (the library's PCs), and optionally performs a hierarchical clustering to group them.

Usage

compute_best_hrfs(
  X_proj,
  L_proj,
  L,
  cluster_series = TRUE,
  cluster_quantile = 0.5,
  dist_method = "euclidean"
)

Arguments

X_proj

Typically the projection of the data

L_proj

The projection of the library

L

The full library matrix (rows= time, cols= candidates)

cluster_series

If TRUE, we cluster with cutree

cluster_quantile

The distance threshold quantile

dist_method

The distance measure (by default "euclidean")


bbuchsbaum/fmrireg documentation built on March 1, 2025, 11:20 a.m.