Skip to contents

Evaluates how well the estimated group-level spectral template (`object$v` from a `hatsa_projector` object) matches a true ground-truth spectral basis.

Usage

compute_v_recovery(hatsa_object, U_true, ...)

Arguments

hatsa_object

A fitted `hatsa_projector` object.

U_true

The ground-truth spectral basis (matrix, e.g., Vp x k).

...

Additional arguments passed to `vegan::procrustes`.

Value

A list containing:

correlation

Pearson correlation between the vectorized aligned estimated template and the vectorized true template.

frobenius_norm_diff

Frobenius norm of the difference between the aligned estimated template and the true template.

procrustes_result

The result of the `vegan::procrustes` call.

v_aligned

The Procrustes-aligned estimated group template.

Examples

# See core-hatsa-toy-example.Rmd for usage.