MCPcopy Index your code
hub / github.com/TheAlgorithms/Rust / compute_means

Function compute_means

src/machine_learning/principal_component_analysis.rs:7–27  ·  view source on GitHub ↗

Principal Component Analysis (PCA) for dimensionality reduction. PCA transforms data to a new coordinate system where the greatest variance lies on the first coordinate (first principal component), the second greatest variance on the second coordinate, and so on. Compute the mean of each feature across all samples

(data: &[Vec<f64>])

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 2

test_compute_meansFunction · 0.85

Calls 3

is_emptyMethod · 0.45
lenMethod · 0.45
iterMethod · 0.45

Tested by 1

test_compute_meansFunction · 0.68